Gevme is ready for your Gleanin application. Once you have your Gleanin's script, please follow steps to add it to your GTM.


Setting up your GTM

Step 1. Create a new script in your GTM under custom HTML


Step 2. Paste the Gleanin script in the following format based on what Gleanin will share with you
Note: Below is only a sample and should not be used.


<script>
var gleaninX = {
campaign: CampaignID
type: "popup"
};
</script>

<script src="https://app.gleanin.com/campaigns_widget.js"></script>
<script src="https://invt.io/s/ABC12345/converts.js"></script>

<script>
setTimeout(function() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://app.gleanin.com/campaigns_widget.js';
document.head.appendChild(script);

var script2 = document.createElement('script');
script2.type = 'text/javascript';
script2.src = 'https://invt.io/s/ABC12345/converts.js';
document.head.appendChild(script2);
}, 2000);
</script>

3. Under Triggering option add /confirmation


Add your GTM to Gevme

In Gevme, go to Event Settings / Event Pages / Google Tag Manager and paste your GTM value there.  

Upon successful registration, the Gleanin widget should appear on the Confirmation page.