• Resolved cmarritt

    (@cmarritt)


    Basic details
    Wordpress Website
    CookieBot implemented using WP plugin
    HubSpot forms added using Shortcodes & HS plugin
    GTM is installed but neither HS or CookieBot is implemented via GTM – only plugins
    The issue
    CookieBot is blocking our HS forms from loading, they are being tagged as ‘statistics’. We had previously fixed this by adding ‘data-cookieconcent=ignore’ to the form script however there has since been an update to either HS plugin, forms or WS and we are no longer able to do this.

    We have Google Tag Manager installed but CB & HS are implemented via plugins, would implement them via GTM help this situation? Or just HS via GTM and using google consent mode

    – Do we need the HS plugin on WP for the forms to work correctly?
    – Would embedding the forms instead of using the shortcode help?
    – If 1 is no, should we deploy HS tracking code via GTM & embedding codes?

    Tried, tested and failed
    – Changing the HS form cookie to necessary – this isnt GDPR compliant as the forms still track the user’s journey across the website
    – Adding ‘data-cookieconcent=ignore’ for the HS tracking script – this isnt GDPR compliant as it would ignore all HS tracking

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support harthur90

    (@harthur90)

    Hi @cmarritt, sorry for the late reply

    Could you forward your previous solution strategy to [email protected] so we can consider how to make a definitive solution?

    Best regards

    Thread Starter cmarritt

    (@cmarritt)

    Hi thank you, i have emailed them!

    Plugin Support harthur90

    (@harthur90)

    You’ll able to add the data attribute by doing the following

    Go to Tools > Plugin File Editor
    Select HubSpot All-In-One Marketing – Forms, Popups, Live Chat

    At the right side select the file leadin/src/class-pagehooks.php

    At the constructor add

    add_filter( 'script_loader_tag', array( $this, 'add_ignore_cookie_consent' ), 10, 2 );

    and then below the method

    /**
    * Add the data attribute to forms script
    *
    * @param String $tag tag name.
    * @param String $handle handle.
    */
    public function add_ignore_cookie_consent( $tag, $handle ) {
       if ( 'leadin-forms-v2' !== $handle )
          return $tag;
       return str_replace( ' src', ' data-cookieconsent=ignore" src', $tag );
    }

    We gonna evaluate if this is something we should add to our code.

    Best regards

    Neven Jevti?

    (@nevenjevtic)

    Hi. Has this been implemented yet? I believe I’m having the same issue where it shows this error for forms: Couldn’t find target container …

    Modifying the plugin’s code is suboptimal as it will get overridden during the update.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CookieBot blocking HubSpot forms from loading unless statistics accepted (using’ is closed to new replies.