Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Pass multiple account / pixel ID to Facebook launch extension

gokula
Level 5
Level 5

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

Experience Platform Launch
1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

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

View solution in original post

8 Replies
gokula
Level 5
Level 5

Hi everyone,

 

Any one came across this situation - tagging few members here to just get help for this post

@analytics_union @Andrey_Osadchuk @PratheepArunRaj 

analytics_union
Level 4
Level 4

Try this: use a data element as your pixel ID.

Now, in your rule, when you need to send a hit to a specific FB pixel ID, use the Core extension's Custom Code action to populate your data element, then add the Facebook extension's Send Page View action.

gokula
Level 5
Level 5
Thank you for quick response @analytics_union . So do you mean when we configure new FB account ID in data element which overwrite on the account ID already configured in FB extension.
analytics_union
Level 4
Level 4

Yes. Within the FB extension, you can specify a data element in place of the pixel ID.

Screenshot 2020-06-03 at 9.03.20 PM.png

gokula
Level 5
Level 5
Thanks @analytics_union So considering I've 3 seperate FB pixel ID from 3 different media agency which we deal with like ABC="123456", PQR="123456", XYZ="123456" In this case how the data element pass to FB extension will work. Any idea? Thanks in advance. Appriciate your help.
analytics_union
Level 4
Level 4

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

jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

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

View solution in original post