• Hello,

    Is this the right plugin to add Data Layer with dynamic data(link text or form button text)?
    I have installed the plugin but the options do not seem intuitive.
    So, if anyone regularly uses this, Pl kindly help me out.

    I need that The data layer is to be passed for all the clicks & Success CF7 form submissions.
    Currently, We are currently recording data via WP GA Events Plugin, but getting duplicate data. So, want to switch to Data Layer.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Indeed, CF7 integration is not yet documented on the website of this plugin.
    Currently, you can use the gtm4wp.contactForm7Submitted data layer event to catch form submissions but this is currently also catching failed submits.

    In v1.15 there will be new, additional events:

    gtm4wp.contactForm7InvalidInput
    gtm4wp.contactForm7SpamDetected
    gtm4wp.contactForm7MailSent
    gtm4wp.contactForm7MailFailed

    All events include two data layer variables:
    formid – the ID for the CF7 form
    inputs – an array of objects, and each object has name and value properties:

    [{
      name: 'your-name',
      value: 'John Doe'
    },
    {
      name: 'your-subject',
      value: 'Help me'
    }]
    Thread Starter Supra

    (@supra21)

    Hi @duracelltomi ,
    Thanks for your detailed reply.
    When will the v1.15 be released?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    It needs some more testing before the release.
    I was planning to release it next Monday but I will have to postpone the release by one week at least.

    Thread Starter Supra

    (@supra21)

    Just updating, we have for the time being implemented manual JS Event calls to add DataLayer like

    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ 'event': 'button_click' ,'click_text': 'Mango', 'button_location': 'banner',  });
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CF7 success submissions + All links : Can we add data layers’ is closed to new replies.