The Facebook pixel can be used for three main functions:
- Building Custom Audiences from your website for remarketing.
- Optimizing ads for conversions.
- Tracking conversions and attributing them back to your ads.
Benefits of using the pixel
With the Facebook pixel, you'll also be able to:
- See rich insights: In Ads Manager you'll see a dashboard which gives you information on the traffic across your website.
- Share your pixel: Useful when working with an agency or Facebook Marketing Partner. Instead of implementing a second pixel for your agency, you can share your existing pixel with them through Business Manager.

The pixel dashboard in Ads Manager.
The pixel code
The Facebook pixel code is made up of two main elements: the base code and the standard event code. The base code should be placed on every page of your website.

What the new code looks like on an add-to-cart page.
Standard events
The one part of the code you'll have to customize is the standard event section. There are 9 available standard events to choose from, such as "Add to cart" or "View Content". These represent the different types of actions people take on your website and only need to be placed on some pages.
Create Pixel code by navigating to this URL
https://en-gb.facebook.com/business/help/952192354843755
Copy the code and Place it in your dotnetnuke skin file .
<!-- 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','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1589443778035863');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1589443778035863&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
If your requirement is to track one page of your dnn website, follow the below steps to insert the pixel code inside head tag.
- Click on Edit Page at the top right corner -- Click on PageSettings.
- Select Advanced Settings Tab and scroll down
- Paste the facebook pixel code in the PageHeaderTags textbox.
Now you can track the page views
No comments:
Post a Comment