Pass multiple account / pixel ID to Facebook launch extension

gokula

20-04-2020

Hello Team, 

 

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? 

 

Thanks

Adobe Launch extension Facebook launch extension

Accepted Solutions (1)

Accepted Solutions (1)

jantzen_belliston-Adobe

Community Manager

14-09-2020

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"

 

Try this:

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

 

Third action: 

Core > Custom code

_satellite.setVar("Facebook pixel ID", "789012") // account PQR

 

Fourth action: Facebook > Send Page View

 

Fifth action: 

Core > Custom code

_satellite.setVar("Facebook pixel ID", "987654") // account XYZ

 

Sixth action: Facebook > Send Page View

Answers (0)