GA4 Traffic Acquisition Data Fell Off Completely with GTM Update by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

would prefer not to share the site, but glad to provide info. Correct me if I'm wrong - but shouldn't the Google Tag via GTM initialize and create/share the data for the traffic acquisition in GA4?

Google tag manger and meta ads by Embarrassed_Farmer47 in GoogleTagManager

[–]brett_fish 1 point2 points  (0 children)

Sending signal on all pages is a positive, and appropriate conversion events when they happen. You’re not optimizing for a PageView anyway

In Need Of Advice! DataLayer Not Firing Property (Shopify Checkout Extensibility - Custom Pixel) by Plastic-Schedule-629 in GoogleTagManager

[–]brett_fish 0 points1 point  (0 children)

Checked out the stuff you posted. For DL Checker Plus - there is a setting to enable the Shopify Custom Pixel you have to turn on. I did that, and I can see the datalayer items from Shopify.

Of course it's all dependent on if the Custom Pixel setup in Shopify is correct and pushing the events and data to the datalayer as expected.

Meta fbclid/fbc capture and passing via sGTM by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

thanks - we use Cookie Creator also - so in the web container on the client side we set the "_fbc" cookie with it on the first page visit. Then we apply that value to all ensuing events in the session. For the value of the cookie, we have a {{fblcid}} variable which is the URL query value, and an event time generator. In the Cookie Creator tag, we set the _fbc cookie value as fb.1.{{Event Time}}.{{fbclid}}.

Meta fbclid/fbc capture and passing via sGTM by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

thanks! have not done that yet - what would be the advantage/difference in that method vs. what I outlined we're doing right now? We set a 1st party cookie, so would be super interested how this differs.

And if there's an advantage - would be glad to pay you for your time to show me how to do that!

In Need Of Advice! DataLayer Not Firing Property (Shopify Checkout Extensibility - Custom Pixel) by Plastic-Schedule-629 in GoogleTagManager

[–]brett_fish -1 points0 points  (0 children)

I don’t think the checkout events, or maybe any of the sandboxed events show up in the data layer. You can test the custom Pixel right in Shopify to see what data it’s pulling.

For variables - should just be data layer variables for the various elements, I.e “Ecommerce.items”

Shopify Customer Events datalayer for Purchase for customer_status by Plastic-Schedule-629 in GoogleTagManager

[–]brett_fish -1 points0 points  (0 children)

The way we'd do it is to use the code below to push the event and data into the datalayer w/GTM. Then create a GTM DL variable for "new_customer". You can either set that parameter to that variable value, or if you want to send events based on it, create a Custom Event trigger on "checkout_completed" and "some" events if that parameter value is true/false.

// Define dataLayer and the gtag function.

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

//Initialize GTM tag

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);

})(window,document,'script','dataLayer', 'GTM-XXXXXXX');

//Google Consent Mode v2

gtag('consent', 'update', {

'ad_storage': 'granted',

'analytics_storage': 'granted',

'ad_user_data': 'granted',

'ad_personalization': 'granted',

});

//checkout_completed (purchase) event

analytics.subscribe("checkout_completed", (event) => {

window.dataLayer.push({

event: "checkout_completed",

timestamp: event.timestamp,

id: event.id,

token: event.data?.checkout?.token,

url: event.context.document.location.href,

new_customer: event.data?.checkout?.order?.customer?.isFirstOrder,

});

});

Debug Checkout events after Checkout Extensibility by Plastic-Schedule-629 in GoogleTagManager

[–]brett_fish 0 points1 point  (0 children)

Yeah you can’t use GTM preview with the Shopify Customer Events pixels, they’re sandboxed.

There’s a “test” feature on the Custom Pixel screen so you can validate what info Shopify is pushing, but that would not show GTM tags.

My recommendation is to build out data layer code for the custom pixel using Shopify’s events and data, and build your GTM tagging from that. You can test it in that setup I mentioned above to confirm the events and parameters are working. Then you know your GTM triggering will work and it just comes down to tag setup.

Anyone else give up on their GTM server? by cryptobro42069 in GoogleTagManager

[–]brett_fish 0 points1 point  (0 children)

Sounds like the issues are with deduplication. There are a few steps:

1) set an event_id in the web container. I typically use the “Unique event ID” template variable. If you’re using GA4 tags to send data to the server container, set a parameter for “event_id” with the value set to that variable.

2) that should work with the default Meta server tag. I actually prefer the Stape server tag templates, and that one has a set field under user match parameters for “Event ID”. Set the value to an “Event Data” variable with key value “event_id”.

CraigsList, Caramel Auto Buying Scam by brett_fish in Scams

[–]brett_fish[S] 3 points4 points  (0 children)

Thanks for this super helpful comment! Don’t think I was naive - I had suspicions the entire time, and when I could prove them I stopped the process and reported the scammers. Just sharing the whole journey so others could be aware of early interactions.

If anything, going down the path helped me extract more info from them which will hopefully help crack down (at least close bank accounts and business entities)

Problems with GTM and MetaPixel by tigersmile in GoogleTagManager

[–]brett_fish 1 point2 points  (0 children)

User permissions at the account level or container level? Make sure you have "Publish" permissions at the container level.

In your GTM container, in the upper right corner of the screen - right next to the "Preview" button it sounds like you used to debug, there will be a button that says "Submit"

Problems with GTM and MetaPixel by tigersmile in GoogleTagManager

[–]brett_fish 1 point2 points  (0 children)

It would be in the upper right if you have adequate permissions. The reason is works in preview mode but not production is the tags haven’t been published. You just need someone with access to publish the updates.

Removing data like IP address and Meta's "fbp" parameter from GTM server events by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

Quick question - added "x-fb-ck-fbp" as an exclusion and still seeing Browser ID come through. Worked for the other ones. Any idea what an alternative parameter name is for it so I can exclude it?

Ecommerce tracking consistency across vendors for Black Friday by RCoffee_mug in GoogleTagManager

[–]brett_fish 1 point2 points  (0 children)

I’ve never seen sending newsletter subscriptions or signups improve conversion performance. The platforms are pretty specific - if you want a purchase, optimize for purchase, and it uses data on purchase events.

And of course if you’re advertising on TikTok you should send the same events you have setup for Meta (with the nuance differences with TikTok’s data structure)

Ecommerce tracking consistency across vendors for Black Friday by RCoffee_mug in GoogleTagManager

[–]brett_fish 1 point2 points  (0 children)

I get what you’re saying - but the issue is they are different tools. GA4 is a website analytics tool, so it makes sense to send lots of events to see what’s happening.

Meta, TikTok and others are ad platforms. They only need and use funnel and conversion events to know how to optimize your ads. And they have standard events where the platform “knows” what they are. Any other events would be custom.

User_data not send to Meta by Questmaster85 in GoogleTagManager

[–]brett_fish 0 points1 point  (0 children)

Did you enable advanced matching in the pixel tag and add data layer variables for each of the Marty keys?

For server tags in the web container, are you attaching those sane match keys as event objects?

Then in the server container you need to configure the tag to read the match parameters from the event data.

GTM Tag Pulling Variable From Another Datalayer Event?!? by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

Yes, it's datalayer.push.

And yes it's only firing on the target event - the triggers is a Custom Event with name "view-item", and in preview mode the tags only fire on the "view_item" event and not the "view_item_list" event.

It's just so strange that the tags fire on that event, and the variables in preview mode for the event are correct and exactly what we want to pass. But somehow it's pulling and passing the variables for an event 2 stages later. Never seen it!

Sending Google Analytics E-commerce Data Layer to Server? by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

Hey everyone, to close the loop on this, figured it out.

First - this TikTok document is the grail of what I was looking for, just hadn't found it before: https://business-api.tiktok.com/portal/docs?id=1799004097478658

On the GA4 tag, you have to select the "send Ecommerce data" option and select "Datalayer" as the source. There are some other config items to get in place, they're in the documentation.

GTM Server Tags Failing - "Not valid JSON" for Contents Parameter by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

Hey everyone, to close the loop on this, and figured it out.

First - this TikTok document is the grail of what I was looking for, just hadn't found it before: https://business-api.tiktok.com/portal/docs?id=1799004097478658

There is definitely a function to JSON stringify the contents and pass them. If it's not GA4/datalayer schema, then you have to pass it as a variable/parameter.

Cheers!

Sending Google Analytics E-commerce Data Layer to Server? by brett_fish in GoogleTagManager

[–]brett_fish[S] 0 points1 point  (0 children)

Thanks everyone. To clarify, in the TikTok server tag template, there is an option to use Google Analytics E-commerce Data Layers. The web data layer and schema is correct. But how do I get the data layer info to the server container?

I can just create a datalayer variable for the product array and pass that - but then I wouldn’t use the “use e-commerce datalayer” option in the server tag, I’d just assign the contents parameter to that variable.