# LinkedIn Event Specific Tracking on CTA

**URL:** <https://community.hubspot.com/t/linkedin-event-specific-tracking-on-cta/88170>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [August 23, 2023, 4:59pm UTC](https://community.hubspot.com/t/linkedin-event-specific-tracking-on-cta/88170 "2023-08-23T16:59:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBrinton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mbrinton/32/98997_2.png) [@MBrinton](https://community.hubspot.com/u/MBrinton)\
**Post date:** [August 23, 2023, 4:59pm UTC](https://community.hubspot.com/t/linkedin-event-specific-tracking-on-cta/88170/1 "2023-08-23T16:59:35Z")

</div>

How do I add the LinkedIn event specific tracking code to my CTA? I need to add the below code to my CTA to be installed to load after my CTA button is clicked.

window.lintrk(‘track’, { conversion\_id: 14020202 });

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 28, 2023, 7:51pm UTC](https://community.hubspot.com/t/linkedin-event-specific-tracking-on-cta/88170/2 "2023-08-28T19:51:26Z")

</div>

Hi, @MBrinton Did you get this resolved? If not, I’d suggest looking into using JavaScript and an event listener? — [MDN addEventListener() method](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) And then, inside the event listener, you can add the LinkedIn tracking code.

You may need to experiment with waiting for the page to fully load or deal with a CTA that is loaded asynchronously or after the `load` event. If you can post a code example of what you set up using JavaScript along with any errors, that helps the community to understand your issue.

Best,

Jaycee
