Linkedin tracking for single page app in Google Tag Manager

Viewed 2935

I'm trying to implement LinkedIn's insight tracking tag in Google Tag Manager on a single page React web application. Since there are no 'real' page reloads, the tag is only fired once. I have a dataLayer event that triggers on rerouting in the app, so I tried setting the tracking tag to fire on that event. The tag itself now fires multiple times but it does not track the new location.

What can I do to solve this?

LinkedIn

3 Answers

It is not an official solution but you can add a custom HTML tag including this:

<script>
  lintrk("track");
</script>

It will be triggered by History Change event.

Related