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

How to add variables to config

jordan-playfab
Level 1
Level 1

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!

1 Accepted Solution
Asheesh_Pandey
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

4 Replies
Asheesh_Pandey
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

jordan-playfab
Level 1
Level 1
I'n sorry, I don't understand the options. I don't know how to use Omniture's web interface for reporting. Whichever way allows our marketing team the greatest level of flexibility in terms of finding and filtering users.
Asheesh_Pandey
Community Advisor
Community Advisor

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.