So, I am implementing a pixel that needs to be added via Google Tag Manager and a variable needs to passed into it.
The GTM code has been added to the site. (This is the general code that Google give).
The pixel that needs to be fired, is on the thakn you page and looking in debug mode, I can see that the tag works.
I need to pass data to this tag so I have created a dataLayer tag
Again in debug mode, I can see this works.
However, what I am not sure is, how do i pass this data into the tag.
The Google Tag:
<img src="https://prf.hn/conversion/campaign:1101l598/conversionref:{{ The dataLayer variable to be included here}}/currency:GBP" height="1" width="1" />';
The dataLayer is:
dataLayer.push({
'oppId': <%= current_customer.opportunities.last.id %>
});
Can someone help me so that when pixel is rendered, it shows soething like:
<img src="https://prf.hn/conversion/campaign:1101l598/conversionref:12345678/currency:GBP" height="1" width="1" />';

