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

Launch - Analytics Extension - How to select the correct report suite.

Avatar

Avatar
Validate 1
Level 1
jefff46594541
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jefff46594541
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
jefff46594541
Level 1

11-09-2019

I am new to Analytics and Launch and I am having some troubles finding the information I need, this is likely the first of several questions.

I have two dev website ... devsite1:3000 and devsite2:3001.  I have two report suites: devsuite1 and devsuite2.  The Analytics Extension allows you to select more than one suite for an environment, in this case I selected both devsuite1 and devsuite2 for my development environment.   I would expect that traffic from devsite1 would be funneled to devsuit1 and devsite2 would go to devsuite2 but from what I can tell that is not the case.  So my question is, how do I get each site to send the data to the correct report suite?

I have watched the tutorial videos, I have watched several pluralsight videos, I have attempted to search both the help docs and forums and I can not find this information anywhere even though it seems it would be a common task.  Does anyone have the answer?

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

129 likes

Total Posts

334 posts

Correct Reply

144 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

129 likes

Total Posts

334 posts

Correct Reply

144 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile
Asheesh_P
MVP

11-09-2019

Hi Jeff,

You can select a data element in place of hardcoding it AA Extension. Here is what you need to do.

  • Create a new data element for dev report suite.
  • Data Element settings
    • Name - dev_reportSuiteID
    • Extension - core
    • Data Element Type - Custom Code
    • Store Duration - None
    • Leave everything else as is.
  • Open Editor : code should be following -

var environment = _satellite.buildInfo.environment;

var domain = window.location.hostname;

if ((environment  == "development" || environment == "staging") && host == "devsite1"){

return = "devsuite1"

} else if ((environment  == "development" || environment == "staging") && host == "devsite2"){

return = "devsuite2"

} else (

return = "devsuite" // catch all report suite

)

  • Go to AA extension > configure > report suite > Development report suite > click on DB icon > select your data element i.e. dev_reportSuiteID

Note: However best practice is to send all dev site data in single dev report suite and create virtual report suite to see data from different dev domain.

Thanks,

Asheesh

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
jefff46594541
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jefff46594541
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
jefff46594541
Level 1

11-09-2019

Asheesh,

Thank you, that was exactly the information I was looking for!

-Jeff