Pass multiple account / pixel ID to Facebook launch extension | Community
Skip to main content
Gokul_Agiwal
Community Advisor
Community Advisor
April 20, 2020
Solved

Pass multiple account / pixel ID to Facebook launch extension

  • April 20, 2020
  • 7 replies
  • 8898 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

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

7 replies

Gokul_Agiwal
Community Advisor
Community Advisor
June 3, 2020

Hi everyone,

 

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

@analytics_union @andrey_osadchuk @pratheeparunraj 

Level 4
June 3, 2020

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.

Gokul_Agiwal
Community Advisor
Community Advisor
June 3, 2020
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.
Level 4
June 3, 2020

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

Gokul_Agiwal
Community Advisor
Community Advisor
June 4, 2020
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.
Level 4
June 4, 2020

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

August 24, 2023

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

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
September 14, 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

December 18, 2020
What if we want to pass multiple Ids at a time?