How to Setup Facebook Pixel in Dokan Cloud
Using the code snippet feature of Dokan Cloud, you can easily set up Facebook pixel and track users.
A Facebook pixel is a piece of code placed on a website that allows businesses to track user actions after clicking on a Facebook ad, enabling them to measure the effectiveness of their ad campaigns, optimize targeting, build custom audiences for retargeting, and ultimately drive more sales by showing ads to people most likely to convert based on their website behavior; essentially, it provides crucial insights into how users interact with a website after seeing a Facebook ad, allowing for better ad optimization and improved return on investment.
We are going to show you how to do this on your Dokan Cloud platform.
You need to collect the pixel code first. So log in to your Facebook ads manager and-
- Go to *Meta Events Manager*.
- Click *Connect data sources* and select *Web*.
- Click *Connect*.
- Enter a name for your pixel, then click *Create pixel*. This creates a new ID, viewable in Events Manager. Note: Events from your Meta pixel are shared to a dataset, which groups events from different sources. Your new dataset ID is the same as your new pixel ID.
- Your next steps depend on if you have a website or not.
- If you have a website, enter your website URL to check for easy partner integration setup options and click *Check*.
- If a partner integration is available to you, you'll see it on the screen. Click *Next* and follow the on-screen instructions to set up your pixel and events through your partner's website.
- If a partner integration is not available, click *Next*.
- If you don't have a website, click to tick the box next to *I don't have a website* and click *Continue.*
- Select how you would like to connect your data with Meta: *Get guidance (recommended)* or *Do it yourself*.
- Select *Get guidance* if you would like setup recommendations. You can skip the rest of the instructions in this article if you select this option, and you can follow the on-screen instructions in Events Manager instead.
- Select *Do it yourself* if you already know how you'd like to connect your data and don't want setup recommendations. If you select this option, follow the rest of the instructions in this article.
- Select *Conversions API and Meta pixel* or *Meta pixel only* as your setup option, then click *Next*.
- If you select *Conversions API and Meta pixel*, choose how you want to set up the Conversions API and pixel: *Set up with partner integration*, *Set up with Conversions API Gateway* or *Set up manually*. If you're not sure which option to choose, you can compare Conversions API setup options by cost and complexity.
- If you select *Set up with partner integration*, select your partner and follow the on-screen instructions to set up the pixel, Conversions API and events.
- If you select *Set up with Conversions API Gateway*, follow the on-screen instructions to set up the pixel, Conversions API Gateway and events.
- If you select *Set up manually*, follow the on-screen instructions to create personalised instructions to set up the pixel, Conversions API and events. On the last screen, you'll have the option to set up the Conversions API yourself using the personalised instructions or send the instructions to a developer.
- If you select *Meta pixel only*, choose how you want to set up your pixel code: *Install code manually* or *Check for partner*. If you have a developer who will set up your pixel for you, you can click *Email instructions* instead.
Install code manually
- Copy the pixel base code.
- Find the header of your website or locate the header template in your CMS or web platform.
- Paste the base code at the bottom of the header section, just above the closing head (</head>) tag, on every page of your website. Your ID will be included in your base code, and you can use one ID across your whole website.

Login to your Dokan Cloud dashboard and go to Settings--> General. There you will find the Code Snippet option. There in the Head section, copy the whole code.
Pixel code, like the Facebook Meta Pixel, is typically placed in the ` `<head> `` section of a website because it ensures the tracking script loads as early as possible on the page, maximizing the chance of capturing visitor data before they navigate away, and minimizing the possibility of being blocked by browser settings or other scripts on the page.

Make sure to delete the <no script> option from the code.
This is how you can add Facebook pixel code into your Dokan cloud platform.
Последнее изменение: 25/02/2026
Спасибо!