Jump to content
Go to solution Solved by jpeter,

Recommended Posts

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?

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

@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!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.