Learn business growth with Google Analytics 4 Forums Google Analytics 4 How to Display Client ID, Affinity ID, and Customer ID on a Website without Utilizing Google Tag Manager?

  • How to Display Client ID, Affinity ID, and Customer ID on a Website without Utilizing Google Tag Manager?

    Posted by Mia on 18 November 2022 at 9:20 pm

    So, I’m a bit confused. When someone logs into this one website, the client ID, affinity ID, and customer ID are showing up in the pageviews of GA4, but get this – it’s not using Google Tag Manager. How’s that happening? Just to note: I’ve been using the Omnibug extension for monitoring this. Also, I’ve tried many times to find any sort of tag in the gtm account code but got zilch. Can anyone shed some light on this?

    Gabriel replied 1 year, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Leo

    Member
    6 December 2022 at 11:06 pm

    Hey there, sounds like a puzzling situation but no worries, we’ve got this figured out. Technically, these bits of data like client ID, affinity ID, and customer ID can be picked up through something like gtag.js, a Javascript tagging framework. It’s a handy little tool that can send event data directly to Google Analytics 4 (GA4), and it doesn’t need Google Tag Manager (GTM) to do so.

    Also, it’s worth noting that other tag management systems (TMSes) can also send GA events without a hitch, even if GTM is being used simultaneously. And of course, it’s totally possible to submit any type of data to any endpoint through pure Javascript.

    In short, even without GTM, there are several ways this type of data could be sent through to GA4. That could explain why you’re seeing that data in the pageviews of GA4. Interesting, right?

  • Gabriel

    Member
    14 April 2023 at 10:23 am

    There could be a few reasons for these IDs showing up in Google Analytics 4 (GA4) even though the website is not using Google Tag Manager (GTM). It’s possible that the site implemented GA4 without GTM and hard-coded its tracking capabilities in the site’s code itself. Alternatively, they could be using another Tag Management System, which is not Google’s. Also, there could be a server-side implementation where these IDs are being passed along to GA4. Basically, when a user logs into the website, the server could be sending these details of client ID, affinity ID, and customer ID to GA4 as part of the payload of the event API call. As for the lack of a GTM tag, it is possible that it was removed or never implemented, especially if the website did a direct integration with GA4.

Log in to reply.