How to add variables to config | Community
Skip to main content
December 27, 2019
Solved

How to add variables to config

  • December 27, 2019
  • 1 reply
  • 2560 views

I'm trying to do something really simple: add a custom variable to every page hit which I can filter in Adobe Analytics. I know how to use JavaScript, but I couldn't find any documentation for how to add something like "developerId" to the set of data sent to Adobe.

 

Here's what my code looks like:

insertJS("https://az725175.vo.msecnd.net/scripts/jsll-4.js", () => {
    const config = {
        coreData: {
            appId: "PlayFab_gamemanager_prod",
            market: "en-us",
        },
    };
    awa.init(config);
});

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 Asheesh_Pandey

Few questions to better understand your question -

Are you using DTM/Launch to add custom variable? or Do you want to add custom variable on app? and use processing rule to define custom variables.

1 reply

Asheesh_Pandey
Community Advisor
Asheesh_PandeyCommunity AdvisorAccepted solution
Community Advisor
January 2, 2020

Few questions to better understand your question -

Are you using DTM/Launch to add custom variable? or Do you want to add custom variable on app? and use processing rule to define custom variables.

- Asheesh
Asheesh_Pandey
Community Advisor
Community Advisor
January 3, 2020

Gotcha! To add a custom variable (let's say user id) in every page hit, you will need to first set userid in either cookie or data layer. once done you will need to use tag manager to read that user id and set a custom prop or evar with user id value on each page.

- Asheesh