Simo Ahava

Browse by source sorted by latest

SGTM Automatically Dispatches GA4 Events After Consent Granted

SGTM Automatically Dispatches GA4 Events After Consent Granted

Server-side Google Tag Manager (SGTM) now automatically redispatches GA4 events after Consent Mode consent is granted. However, these events can't be used for GA4 data collection. This automatic dispatch is primarily for Google's advertising tags. When consent is initially denied, then granted for ad_storage, these events are resent to the SGTM endpoint. This only applies when data is collected with Google Tag to a SGTM endpoint, and consent is granted for ad_storage.

#GTMTips: Consent Granted Reprocesses Previously Denied Hits Trending ️‍🔥

#GTMTips: Consent Granted Reprocesses Previously Denied Hits

8 months ago

The article corrects misconceptions about Google Analytics 4's Advanced Consent Mode. It was believed that denied hits needed to be resent once consent was granted. However, Google Analytics 4 automatically reprocesses these hits, changing their status to 'granted'. This simplifies Consent Mode setups as there's no need to resend hits. The ethical and legal implications of this data reprocessing are still under consideration.

Top-Notch Google Analytics Audit Tool

Top-Notch Google Analytics Audit Tool

Sponsored

Get comprehensive Google Analytics Audit: 40 pages, 100+ features analyzed, 3 themes, 3 file formats.

GA4 Auditor
GA4 Auditor

Verified Sponsor

Verified Sponsor

GA4 Auditor is a Verified Sponsor. Want to get featured here? Contact us.

Verified Sponsor
Simple RegEx Table For Google Tag Manager

Simple RegEx Table For Google Tag Manager

The article explores Google Tag Manager's Lookup Table Macro, noting its inability to support operations like predicate logic. The author proposes a Custom JavaScript variable to create a regular expression table as a solution. The importance of understanding Lookup Tables and the complexity of adding operational logic is emphasized. A book for further learning on the topic is recommended.

#GTMtips: Add The "event" Key To dataLayer Pushes

#GTMtips: Add The "event" Key To dataLayer Pushes

The article provides a Google Tag Manager tip to always add the 'event' key to dataLayer push commands. This is because each Tag requires a Trigger, and each Trigger needs an Event condition to activate. Without the 'event' key, Tags can't be fired. This is particularly important in Enhanced Ecommerce. The article also reveals that 'event' key can be added to pre-container-snippet pushes, enabling Tags to fire before the Pageview event.

#GTMTips: Referral Exclusion On Receipt Page

#GTMTips: Referral Exclusion On Receipt Page

8 months ago

The article offers a solution for managing the Referral Exclusion List in Google Analytics, which can be challenging due to its user interface and the need to know incoming referrals. The author suggests using Google Tag Manager for flexibility. The key tip is to exclude all referrals on an Ecommerce site's receipt page, ensuring correct attribution as these referrals are always part of the checkout funnel and not significant otherwise.

#GTMTips: Remove Email Addresses From URL Parameters Trending ️‍🔥

#GTMTips: Remove Email Addresses From URL Parameters

The article offers a method to eliminate Personally Identifiable Information (PII), particularly email addresses, from URL parameters in Google Analytics. It involves creating a user-defined variable in Google Tag Manager (GTM) that returns the URL Query string. A Custom JavaScript Variable is then established to locate and replace any email address in the URL query string. This must be applied to every Google Analytics Tag.

#GTMtips: dataLayer Declaration Vs. .push()

#GTMtips: dataLayer Declaration Vs. .push()

When using Google Tag Manager, always use .push() with dataLayer to avoid breaking GTM’s proprietary functions. Redefining dataLayer after the GTM container snippet can disable your tags. Using .push() prevents overwriting in the Array. In GTM tags, use dataLayer.push(). On the page template, check if dataLayer has been defined and initialize it as a new Array if needed. Be cautious if dataLayer is defined but not as an Array.

The Technical Marketing Handbook By Simmer

The Technical Marketing Handbook By Simmer

8 months ago

Simmer's Technical Marketing Handbook is a free, comprehensive guide designed to demystify the field. It covers core topics across 9 chapters, with advanced 'Deep Dives' for further learning. Exclusions and future plans include an audiobook and podcast. The Handbook aims to elevate digital marketers' skills globally.

Consent Mode V2 For Google Tags Trending ️‍🔥

Consent Mode V2 For Google Tags

9 months ago

Google's Consent Mode V2, crucial for websites using Google's advertising services, introduces two new signals: ad_user_data and ad_personalization. It mandates implementation by 2024, emphasizing the need for consent in data collection. Non-compliance could affect remarketing capabilities. The update, detailed by Markus Baersch, stresses early adoption and careful data collection from non-consenting users to avoid legal and ethical issues.