{"id":4333,"date":"2020-06-01T08:05:00","date_gmt":"2020-06-01T05:05:00","guid":{"rendered":"https:\/\/trackingchef.com\/?p=4333"},"modified":"2024-10-28T19:02:38","modified_gmt":"2024-10-28T16:02:38","slug":"selective-linkedin-insight-tag-firing-based-on-location","status":"publish","type":"post","link":"https:\/\/trackingchef.com\/blog\/selective-linkedin-insight-tag-firing-based-on-location\/","title":{"rendered":"Selective LinkedIn Insight Tag firing based on location"},"content":{"rendered":"\n
Recently I’ve helped a friend set up a Google Tag Manager (GTM) container for a project he’s working on. As in many cases the GTM container held many tag, including the LinkedIn Insight Tag.<\/p>\n\n\n\n
My friend thought that it would be nice to analyze the Website Demographics report from the Insight Tag’s data, to expose which companies have visited the project’s page. <\/p>\n\n\n\n
But to his disappointment, he discovered out that their internal traffic was “messing up” LinkedIn’s data, and could extract little insight from it. Since LinkedIn doesn’t offer many options to filter internal traffic (unlike tools like Google Analytics<\/a>), we figured we’d need to take a different approach to this.<\/p>\n\n\n\n With COVID-19 still at its peak, and everyone working from home, IP filtering wasn’t option. In any case this isn’t a stable solution in GTM though some methods do exist.<\/p>\n\n\n\n The other way we thought we can approach this was through the user’s location. We knew that traffic outside of Israel (where the company’s HQ is located) definitely prospects, with Israeli companies being a secondary targeting for their marketing. <\/p>\n\n\n\n So we looked for a solution to bring the user’s location data into GTM and came across this great guide (and Template Tag!)<\/a> by Simo Ahava. In a nutshell, Simo created a Template Tag for GTM that connects to an API that parses the user’s IP to their exact location. Oh, and it’s free (up to 30k request monthly). Eureka!<\/p>\n\n\n\n First we added a new tag in GTM, using the Custom Template.<\/p>\n\n\n\nGeolocation triggers in Google Tag Manager<\/h2>\n\n\n\n
Building the logic in GTM<\/h2>\n\n\n\n