Fix inconsistent event IDs caused by GTM tag sequencing

Written by

Uliana Lesiv

Published Feb 18, 2026 comments

Key takeaways

    About tag sequencing in GTM

    Tag sequencing

    Problem while using the GTM tag sequencing

    Event_id in the main GA4 tag
    In the Meta tag, the ID is different

    Why unique event ID variable resolves differently

    Tag sequencing

    How to ensure consistent event IDs across tags

    <script> window.dataLayer = window.dataLayer || []; dataLayer.push({unique_event_id: {{Unique Event ID}} }); </script>

    🚀 Note:

    Configuration example
    Data Layer Variable configuration
    event_id
    Trigger configuration

    How to debug the configuration

    Event ID in Meta page_view
    Event ID in GA4 page_view

    Final words

    Want to try the server side?

    Try for free

    Written by

    Uliana Lesiv

    Content writer

    Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

    Was this article helpful?

    Comments

    Recommended for you

    Turn better tracking into better marketing performance

    Try for free