Adding Facebook Tracking Pixel and event to survey

More
6 months 2 days ago - 6 months 2 days ago #167373 by vadikcoma
vadikcoma created the topic: Adding Facebook Tracking Pixel and event to survey
Hello, what would be the correct way and which templates do I have to edit, in order to add Facebook Tracking Pixel

<!-- Facebook Pixel Code -->
<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',
' connect.facebook.net/en_US/fbevents.js ');
fbq('init', '*********************');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src=" www.facebook.com/tr?id=*****************...=PageView&noscript=1 "
/></noscript>
<!-- End Facebook Pixel Code -->


And "Complete Registration Event" which, I assume, should be placed on "Thank you" page

<script>
fbq('track', 'CompleteRegistration');
</script>


Thank you!
Last Edit: 6 months 2 days ago by vadikcoma.

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167428 by tpartner
tpartner replied the topic: Adding Facebook Tracking Pixel and event to survey
What LimeSurvey version?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167445 by Joffm
Joffm replied the topic: Adding Facebook Tracking Pixel and event to survey
Hi,

of course I do not know the regulations in Latvia.
But e.g. in Germany the respondent has to agree to this kind of being tracked.

Personally I do not support facebook and other similar stuff.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167461 by vadikcoma
vadikcoma replied the topic: Adding Facebook Tracking Pixel and event to survey
Hello Joffm,

Version 2.72.5+171121

We are using facebook to target advertising to users who might be interested in our survey. 50 users will receive money prizes for filling our survey.

Their data is not used in any other way.

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167463 by tpartner
tpartner replied the topic: Adding Facebook Tracking Pixel and event to survey
Place the first script in startpage.pstpl, right before the closing </head> tag.

Place the second script at the end of completed.pstpl.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167464 by holch
holch replied the topic: Adding Facebook Tracking Pixel and event to survey
And yet: With the "General Data Protection Regulation (GDPR)" in place soon (and Latvia is part of the European Union, afaik), I would do some digging regarding this integration. You might run into some severe trouble as soon as this is officially enforcable (May 25th 2018). I am not an expert on this, but whenever there is Facebook and Tracking envolved I would pay special attention.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
6 months 1 day ago #167465 by vadikcoma
vadikcoma replied the topic: Adding Facebook Tracking Pixel and event to survey
Thank you

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!