Using same facebook pixel on landing page and purchase website - google-tag-manager

My facebook ad leads to a landing page, which is easy to track with the facebook pixel. But that landing page leads to another purchase page with a different domain. I was wondering how can I track the purchase page with the same pixel?
Theoretically I could create a new container with Google Tag Manager for the purchase website, and add facebook pixels tags there, but how would the pixel on the purchase page know that it was referred from the landing page? Because the purchase page is not reached directly from the facebook ad.
Just in case someone finds it confusing:
Facebook ad > Landing page > Purchase page (different domain)
Thanks in advace

With the Facebook tag it doesn’t need to know it was referred, just add the conversion parameters on the purchase page and it should work fine as it just relates the purchase to the click on the ad not the path that was made. An example would be if the user clicks on the ad then leaves and comes back days later to purchase this would still trigger a conversion to the ad.

Related

Facebook Link clicks higher than Landing page view

I’m facing a weird result from Facebook Manager by activating a campaign in a new SPA (asynchronous loading) website: only 10% of the FB Link clicks gets a Landing page view result. Same behaviour in Google Analytics, but more results (+/- 40%).
I’m using GTM to push the Facebook pageview tag with the regular pageview pixel script. Triggers used:
Pageview all pages (for each page loaded – new session or page refresh)
History change (navigation in the SPA pages)
List item
When I’m debugging the FB pixel, everything looks to be correctly set up:
GTM preview: I’m seeing the tag fired
ObservePoint + Facebook pixel helper + Chrome DevTools Network: I can see the following Facebook url sent by clicking on a FB ad:
https://www.facebook.com/tr/?id=1111111111&ev=PageView&dl=https://hostname.com/page?param1=1&param2=2&utm_source=fb&utm_medium=cpc&utm_campaign=xxx | 2022&fbclid=3q2s131qs1d32q132d&rl=&if=false&ts=1656328556245&sw=2048&sh=1152&v=2.9.62&r=stable&ec=0&o=30&it=1656328556200&coo=false&exp=p0&rqm=GET&dt=hi57gjmsg5j527ia92z7j27mmz1of1b9
Other comments:
I also tested to remove the cookie consent blocking trigger in case of huge opt out, but no specific increase of pageviews.
No redirect has been detected in the campaign
Does anyone already encounter this kind of issue?

Intelligent modal with Facebook Like box

I have one thing to make intelligent modal window with facebook like box. Intelligence is in not disturbing first time visitor and all visitors that has liked my FB page. Step by step logic is:
Check cookie, if visitor is here for first time, create cookie with visit time and do nothing.
If visitor returned to site after minimum 24 hours, check if logged in user has liked my FB page. If yes, do nothing.
If returned visitor does not liked my FB page in past, dim browser and display modal (popup) window with facebook like box.
If visitor close modal window without liking FB page, set cookie to do not disturb him anymore.
Sorry for my english. I'm dummy programmer, If you can help me to do this in PHP (for Wordpress as plugin), or if you thing that same plugin exist, please send me a link and I will buy this plugin.
Thank you.

How to use Facebook Custom Audience Pixel in woocommerce wordpress without having any "activated multiple times on this web page.." error?

I have created a plugin for wordpress that adds Facebook Custom Audience Pixel conversion codes for woocommerce pages but i'm having problem with the addtocard coversion codes and pageview. I added viewcontent and pageview on all pages.
1st option: when product page just refreshes after clicking the button, viewcontent and pageview are loaded multiple times.
2nd option: when product page redirects to cart page after clicking the button, only the pageview is loaded multiple times.
what do i need to do to limit conversion codes to only 1 per page?
I've stumbled exactly to the same issue and the only reference I've found is this post:
Pixel Activated Multiple Times for Facebook Pixel Tracking
Apparently, the presence of an iFrame in your page causes it.
Once I removed the iFrame this didn't happen.
I believe this happens as Facebook pixel code appends this script "//connect.facebook.net/en_US/fbevents.js" to the header of your document

Correct setup for cross-domain Google Analytics

I can't imagine this is an uncommon problem, but we keep running into challenges.
We have a campaign with a landing page on our site, with a form visitors can fill out. They give us their email, we email them some content. We want to track this as a single GA conversion.
Right now the setup has three pieces:
1) The campaign landing page on our web site
2) The actual form they fill out, which is in an iframe and hosted on a subdomain (info.MMMM.com instead of www.MMMM.com) (this form is managed and hosted by marketing automation service Pardot)
3) The "Thank You" page to which users are redirected once they fill out the form. This is on the main domain, not the subdomain.
We're using Universal Analytics, I believe. We have the stock UA snippet in the overall site footer, so it already appears on both the landing page and the thank-you page.
We have a cross-domain issues, in that right now info.MMMM.com appears as a high-traffic referrer. Of course this is wrong -- that's our own subdomain, and it's masking the real referrer.
I've been following Pardot's instructions for cross-domain tracking. In doing so, I added our UA code snippet to the code generator for the iframed form. This works, but the Google Tag Assistant then tells me I have two GA tags for the same property (one in the iframe and one in the overall page footer I guess).
Am I headed up the wrong tree? Should I just be following the guidelines for "Cross domain auto linking for forms" on this Google page?
https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain
Any pointers would be helpful.
Thanks,
SGL

Tracking Google DFP Ad Clicks in ASP.NET

I am wondering if it is possible to track when a user of a website clicks on a Google DFP ad. I know that the Google DFP website tracks clicks, but I want to be able to track which users (when logged in, using ASP.NET membership) are clicking ads and how many ads. Is this possible?
I've been asking a similar question and haven't found an answer yet!
The closest I've come is this - http://support.google.com/richmedia/bin/answer.py?hl=en&answer=117426
To track clicks using your own click-tracking server, you must include an attribute in the ad tags that specifies the URL for the server. The URL is accessed every time that a user clicks on an ad, enabling your server to count the click. This attribute is click=value, where value is the URL for the clicktracking server. The click-tracking URL should not contain any semicolons (;). If necessary, you can encode semicolons as the equivalent %3B characters.
The sample URL below shows an ad tag with an implemented click attribute:
http://ad.doubleclick.net/adi/N270.maheshdfasite/B3140338.2;dcopt=1_ist;click=http://site.com/cgi/clicktrack?clickid=12345&page=abcd&goto=;sz=0x0;ord=[timestamp]?
so it looks like you could put a URL to your website inside the click handler.
Is this specific to rich media (e.g. flash ads) ? I don't know!

Resources