You can use a snippet manager such as Google Tag Manager (GTM). To do this, follow these steps:

1. Create new tag and add the Chameleon code snippet

  1. Name your tag: Chameleon 
  2. Select "Custom HTML"
  3. Paste your code snippet (found in your dashboard)
  4. Select "All Pages" for the trigger

2. Identify users and send any user property via Variables. For each user property:

  1. Create a New User-Defined Variable
  2. Select Custom JavaScript
  3. Copy and paste the following, and include the relevant variable    
function() {      var uid = window.uid; //<REPLACE WITH USERID PROPERTY>;      return uid;    }Name the property by adding UID (in this case) in the Global Variable Name and Rename Variable fields

Ensure all data sent as variables.

All data sent to Chameleon needs to be defined in these variables and interpolated into the snippet. In order to work correctly, these properties need to exist on the page so GTM can reference them: (email, created_at, any segment info, etc) .

3. Publish the tag! 🚀

If you still don't see the the editor on your page after following the above steps, click on the chat bubble on the bottom right to start a new conversation with our team ↘️.

Note Google Tag manager was formerly know as Google tagmanager

Did this answer your question?