Sign in to Community
Sign in to view all badges
We are using Facebook pixel extension to measure the effectiveness of advertising by understanding the actions. Currently we are working with different agencies who provide us different ID's.
The current Facebook extension accepts only one ID so I'm looking it to customise Facebook extension which accetps multiple ID's and make new develop extension.
I'm referring to example https://github.com/Adobe-Marketing-Cloud-Activation/extension-facebookpixel
but Have you ever come across this type of scenario or any development touch points?
Answer given in the comments to the orginal post. Posting here as an answer for easy reference:
Actually, your example IDs are bad. More likely they are like this: ABC="123456", PQR="789012", XYZ="987654"
Assuming your data element is called "Facebook pixel ID".
Then in your rule(s) where you need to fire a Facebook pageview pixel, your actions would be like this:
First action: Core > Custom code
_satellite.setVar("Facebook pixel ID", "123456") // account ABC
Second action: Facebook > Send Page View
Core > Custom code
_satellite.setVar("Facebook pixel ID", "789012") // account PQR
Fourth action: Facebook > Send Page View
_satellite.setVar("Facebook pixel ID", "987654") // account XYZ
Sixth action: Facebook > Send Page View