Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Pass multiple account / pixel ID to Facebook launch extension

Avatar

Community Advisor

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
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

11 Replies

Avatar

Community Advisor

Hi everyone,

 

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

@analytics_union @Andrey_Osadchuk @PratheepArunRaj 

Avatar

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.

Avatar

Community Advisor
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.

Avatar

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

Avatar

Community Advisor
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.

Avatar

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

Avatar

Level 1

Hello analytics_union,

 

I'm transferring the tags from Tealium to Launch, and Tiq requires numerous pixel ids to be separated by commas, for example, 12345.435334,234555. Launch, however, only allows the use of one pixel ID. I tried using the custom code you advised, but I was unable to accomplish it using the new meta pixel extension.

 

Regards,

Himanshu Joshi

Avatar

Correct answer by
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

Avatar

Level 1
What if we want to pass multiple Ids at a time?

Avatar

Level 2

Hi Jantzen,

 

Do have you user guide/reference document for facebook conversion aPI integration using Adobe Launch.

 

Thanks & Regards,

Madhusudan Sura