sGTM v1.7.0

New in v1.7.0

  1. CF7 Bridge Enhancements

    • Automatic detection of Contact Form 7 on both initial page load and dynamically added forms.

    • Fires default lead events upon successful submission:

      • GA4: 'generate_lead'

      • Facebook: 'Lead'

      • TikTok: 'SubmitForm'

  2. Custom CF7 Events

    • Allows optional customizations in addition to defaults:

      • Custom dataLayer events

      • GA4 (gtag) custom events

      • Facebook custom track/trackCustom with flexible naming (useTrack)

      • TikTok custom event support

  3. DOM Rules Engine

    • Fully configurable click/interaction rules:

      • Based on CSS selectors, regex (href or text), attributes, classes, IDs

      • Extract values—text, attributes, dataset, field values, closest ancestor attributes

      • Supports trigger types (click, mousedown, contextmenu)

      • Controls: once-per-element, throttling, preventDefault, stopPropagation

      • Fires custom events to:

        • dataLayer

        • GA4 (gtag)

        • Facebook (track or trackCustom)

        • TikTok

  4. Path-based Overrides

    • Define path-specific configuration changes:

      • Regex matches on location.pathname

      • Deep-merging of config for particular pages (e.g. landing pages like /lp1)

      • Merge objects recursively— support nested configs, disable CF7 on certain paths, swap pixels per page

  5. Vendor Autofire Control

    • Every vendor pixel/tag (Facebook, TikTok, LinkedIn, Reddit, etc.) supports an autofire flag to prevent default pageview firing.

האם מצאת את המאמר שימושי?