If you already created custom variables in Google Tag Manager, you can use them in WisePops.

To do so, add the following code after your WisePops tracking code:

// Send custom properties
wisepops('properties', {
VariableNameForWisepops: '{{VariableNameOfGTM}}'
});


Here is a quick example. Let's say you want to exclude your newsletter subscribers from seeing your users. Your GTM variable is called Subscribed. You want to use it with the name "subscribed" in WisePops. Here's the code we would add:

// Send custom properties 
 wisepops('properties', {
    subscribed: '{{Subscribed}}'
});

 And this is what your tracking code would look like in Google Tag Manager.

You can then use that new variable in your custom conditions to make sure your campaign is displayed to the users who have not signed up yet.


If you want to use more properties, separate them with commas. For example:

// Send custom properties 
wisepops("properties", {
    subscribed: '{{Subscribed}}',
    country: '{{Country}}',
    age: '{{Age}}'
});


Feel free to contact us if you need help.

Did this answer your question?