We have the option to set up a dynamic pixel and pass it via the website URL; this way, you can run traffic to a single landing page using different ad flows simultaneously.
To do this, append the parameter ?fb_pixel=
your_pixel_ID to the landing page link you plan to use in the ad campaign (if the link has no other parameters yet) or &fb_pixel=
your_pixel_ID (if there are other parameters). Then, you can simply change the ID in the link without modifying the landing page itself.
In this case, the pixel code shown in the previous section will be automatically generated on the necessary pages with the pixel ID specified in the URL, namely:
- The base pixel code containing the PageView event will be installed on the main page.
- On the "Thank You" page - PageView and the Lead event to track the conversion.