A Guide to Countering Safari's GCLID Removal

 

The announced changes in Safari, which are expected to remove click identifiers like GCLID (Google Click Identifier) from URLs in standard browsing, will significantly impact how Google Ads campaign performance is attributed in Google Analytics. The GCLID is a crucial parameter that links an ad click to a user's session on your website, allowing you to see which campaigns, ad groups, and keywords are driving conversions. le Click Identifier) from URLs in standard browsing, will significantly impact how Google Ads campaign performance is attributed in Google Analytics. The GCLID is a crucial parameter that links an ad click to a user's session on your website, allowing you to see which campaigns, ad groups, and keywords are driving conversions.

Without GCLID, that direct link is broken, and a click from a Google Ad may show up in Google Analytics as "direct" or "unattributed" traffic, leading to underreported conversions and inaccurate campaign performance data.

To mitigate this data loss and ensure you can still attribute campaign performance, here are some key strategies and solutions:

1. Implement Server-Side Tracking

This is widely considered the most robust and future-proof solution. Instead of relying on the user's browser to pass tracking parameters, you handle the data on your own server.

  • How it works: When a user clicks your ad, a custom backup parameter (in addition to the GCLID) is added to the URL. If Safari strips the GCLID, your server-side setup can read the backup parameter, and then use that information to create the GCLID server-side.
  • Benefits: This approach bypasses browser-side restrictions and provides a more reliable and complete data stream. It ensures that conversions are still recorded even if the original GCLID is removed from the URL.
  • Technical steps:
    • Configure a backup parameter in Google Ads: In your Google Ads account, go to the "Final URL suffix" setting and add a custom parameter, such as backup_gclid={gclid}.
    • Set up Server-Side Google Tag Manager (sGTM): This allows you to process data on your server.
    • Use a "Query Replacer" variable: This variable can be configured in sGTM to find the backup parameter and replace it with the GCLID, ensuring the tracking data is correctly formatted.
    • Use the Conversion Linker tag: This tag in sGTM handles cookie creation and management, ensuring accurate conversion tracking.

2. Leverage Enhanced Conversions

Enhanced conversions improve the accuracy of your conversion measurement by supplementing your existing conversion tags with user-provided, privacy-safe data.

  • How it works: When a user converts on your site, you can send hashed first-party data (like email addresses or phone numbers) to Google. Google then uses this data to match the conversion back to the ad click, without relying on cookies or click identifiers.
  • Benefits: This method is effective for measuring conversions that may not be captured by traditional tracking methods, especially for users who are not signed into a Google account. It provides an additional layer of attribution that isn't dependent on URL parameters.

3. Utilize First-Party Data Strategies

Building a strong first-party data strategy is essential in a privacy-first world.

  • Offline Conversion Imports (OCI): If your conversions happen offline (e.g., a phone call or in-store purchase), you can import this data into Google Ads and Google Analytics. By matching customer information (e.g., email or phone number) from your CRM with ad clicks, you can attribute the conversion to the right campaign.
  • CRM Integration: Connecting your CRM system directly to Google Ads and Analytics allows you to send conversion data from a trusted source, independent of browser restrictions.

4. Implement Google's Consent Mode

Google's Consent Mode allows you to adjust how your tags behave based on a user's consent choices (e.g., whether they accept or decline cookies).

  • How it works: When a user denies consent for tracking, Google's tags don't set cookies. Instead, they send "cookieless pings" with a limited, privacy-safe data set. Google can then use this data to model your conversion metrics, filling in the gaps where direct measurement is not possible.
  • Benefits: While it won't provide a direct one-to-one attribution for every conversion, it helps to recover lost data and provides a more complete picture of your campaign performance by leveraging machine learning to model conversions.

By combining these strategies—especially a robust server-side tracking setup with enhanced conversions and first-party data collection—you can significantly mitigate the impact of Safari's privacy changes and maintain accurate attribution for your Google Ads campaigns within Google Analytics.