orkoellis Posted January 16 Posted January 16 Hello I have a landing page: https://www.letsexploreboston.com pw: bpm. The media company we're working with is asking to add custom tracking codes in 3 areas. The main landing page and the two buttons that are on the landing page. I can figure out how to implement the pixel on the landing page itself, but I'm having issues with how to add the custom snippet on button specific. The instructions from the media company are as follows: Set this tag to fire when "Visit the Market" button is clicked: <script>aap({ pixelKey: '4714665652016067849', pg: 33367 })</script> Set this tag to fire when "Visit the Greenway" button is clicked: <script>aap({ pixelKey: '4714665652016067849', pg: 33365 })</script> How do I add button-specific code?
Solution jpeter Posted January 17 Solution Posted January 17 @orkoellis I see that your site uses Google Tag Manager, I'd recommend you use that to handle this by creating a Custom HTML tag for each aap(...) tracking code and then create a Trigger that will fire the Custom HTML tag based on the click text of the element being clicked. Full stack developer who loves helping people out with anything web related. If you'd like to support me, buy me a coffee!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment