Triggering a Campaign on Every Page Load

Do you want a campaign to trigger every time a page is loaded?

Normally, a campaign is shown once per session. This ensures a non-intrusive experience for your users and customers.

It can be annoying to see the same popup every time a user refreshes a webpage.

In some cases, though, it makes sense to have it trigger every time. For example, if you are running a contest or use campaign as a contact form, you might want the user to see it every time.

Before we move on, make sure you have Google Tag Manager implemented on your website.

Here's the guide:

  1. When editing a campaign, go to 'Settings' and click 'Change rule'.
Screenshot_2019-12-12_at_16_04_06-1

 

2. Select 'Add another trigger' and then 'Javascript trigger'.

 

Screenshot_2019-12-12_at_16_05_35

 

3. Copy the ID of the campaign as seen below and 'Enable trigger'. Save when you're done.

 

Screenshot_2019-12-12_at_16_07_09

 

4. Next up, go to Google Tag Manager and create a new tag.

 

4

 

5. Select 'Choose a tag type to begin setup' and then 'Custom HTML'.

 

5

 

6. Copy this script and replace 'SLEEKNOTE ID HERE' with your own campaign ID:

 

<script>

jQuery(document).ready(function() {

setTimeout(function(){SleekNote.triggerOnclick(‘SLEEKNOTE ID HERE’);}, 3000);

});

</script>

 

6

 

7. Scroll down and click on 'Choose a trigger'.

 


8. Select your desired trigger type. You can for example choose 'Page view'.

 

7

 

9. Then select what page(s) the script should trigger on.

 

Here's an example:

 

8

 

10. Finally, save your tag and remember to click 'Publish'.