• Resolved VitaSerk

    (@serkankurnaz)


    Hello,

    I have set up my FB Pixel via PixelYourSite, but now unfortuantely one cookie of fb is already running, before i accept the cookie agreement.

    Here is a screenshot of it:

    View post on imgur.com

    I have tried to block the scripts in the center:
    .facebook.com, https://www.facebook.com, facebook.com

    But it did not work ??

    How can i fix this small issue?

    Thanks a gain for your great work!

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi @serkankurnaz,

    I will check. Be with you soon.

    regards Aert

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @serkankurnaz,

    The fastest way is to add your entire pixel to our script center. I will have to find the origin of the “fr” cookie to make the right adjustments. I will try, but I don’t know how long this will take,

    regards Aert

    Thread Starter VitaSerk

    (@serkankurnaz)

    Hallo @complianz and @aahulsebos

    thanks again for your quick answer!

    I know only my standard Pixel Code for page views, but for all standard events I use the PixelYourSite Plug in, which does and includes the pixel-script automatically.

    But here are the code-snippets:
    https://www.facebook.com/business/help/402791146561655

    Thanks a lot!

    Thread Starter VitaSerk

    (@serkankurnaz)

    PS: I have inserted the script:

    <script>
    !function(f,b,e,v,n,t,s)
    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};
    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
    n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];
    s.parentNode.insertBefore(t,s)}(window, document,’script’,
    https://connect.facebook.net/en_US/fbevents.js&#8217;);
    fbq(‘init’, ‘XXXXX’);
    fbq(‘track’, ‘PageView’);
    </script>
    <noscript><img height=”1″ width=”1″ style=”display:none”
    src=”https://www.facebook.com/tr?id=400787967004598&ev=PageView&noscript=1(44 B)
    https://www.facebook.com/tr?id=400787967004598&ev=PageView&noscript=1

    /></noscript>

    But i get some errors :S So It wont save it ??

    PPS: as said it is not the complete script, some standard events are missing there.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Can you try inserting the script without the <script> tags, like this?

    !function(f,b,e,v,n,t,s)
    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};
    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
    n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];
    s.parentNode.insertBefore(t,s)}(window, document,’script’,
    ‘https://connect.facebook.net/en_US/fbevents.js’);
    fbq(‘init’, ‘XXXXX’);
    fbq(‘track’, ‘PageView’);
    Thread Starter VitaSerk

    (@serkankurnaz)

    I have now tried following:
    !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,’script’, ‘https://connect.facebook.net/en_US/fbevents.js&#8217;); fbq(‘init’, ‘myID’); fbq(‘track’, ‘PageView’);

    is that correct?

    it saved it now, but the one cookie is still loading before accepting ??

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    This code will only execute after accepting. What I see on your site, is that there are some other script sections which refer to Facebook, which are not blocked yet because these are coming from custom implementations from plugins on your site: these implementations are not recognised by Complianz yet.

    You can block these by adding ‘facebook’ to the blocked scripts in the script center (add to “URL’s from scripts you want to be blocked before the cookie warning is accepted”).

    Depending on how these scripts are used, this might break some javascript on your site, so please check what happens after adding this.

    If you want to be more specific, you can block only one of these scripts by making it more specific. For example you could add ‘pysOptions’ or ‘ElementorProFrontendConfig’ to the script center (without the quotes).

    That should block the facebook scripts from activating.

    Thread Starter VitaSerk

    (@serkankurnaz)

    Hey @rogierlankhorst

    thanks for the quick update!

    yes, you are right, i used 2 different plug ins to add the pixel-code before i finally found PixelYourSite…but i have disabled and deleted those older plug ins. This should delete the old scripts or not? Or how can i delete those old facebook scripts myself?

    I have tried to block all facebook scripts before, then it wont load the cookie before. But much more worse, then afterwards, the pixel will not work correctly anymore ?? So not really a solution ??

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @serkankurnaz,

    If you deactivated those plugins, the code should not show anymore. Is it possible there’s some custom code at work here?

    How is the pixel implemented at the moment? I’d like to recreate this on a test environment so I can see what’s happening.

    Thread Starter VitaSerk

    (@serkankurnaz)

    Hi @rogierlankhorst

    This is weird, I thought so too :S But it seems that still some code is working?
    No, custom code added.
    So i have installed and deleted folliwing plug ins:
    WooCommerce Conversion Tracking
    Facebook for WooCommerce

    PixelYourSite (which i am currently using as the only one) is activated.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @serkankurnaz,

    We will setup a sandbox environment with this plugin to see if we can reproduce the issue and see if it’s possible to block it. I’ll get back to you on this.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @serkankurnaz,

    Just tested with pixelyoursite plugin, and it’s working if I add the following string:
    pixelyoursite/dist
    to the script center, in the field
    “URL’s from scripts you want to be blocked before the cookie warning is accepted”

    Before giving consent, the cookies are not placed. After consent the facebook cookies are successfully placed.

    I don’t see any other references to facebook, so if you have other instances of facebook code, you may still have another plugin active that is adding FB cookies, or you might be looking at caching.

    Thread Starter VitaSerk

    (@serkankurnaz)

    PERFECT!

    Thank you very much @rogierlankhorst

    it worked! ??

    Best support ever! 5 Stars are coming!

    Thread Starter VitaSerk

    (@serkankurnaz)

    closed ??

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Thanks for the review, great it’s solved!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Facebook Pixel/Cookie’ is closed to new replies.