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

Specify report suite with a data element

Avatar

Avatar
Validate 10
Level 3
philipk92120636
Level 3

Likes

14 likes

Total Posts

88 posts

Correct Reply

8 solutions
Top badges earned
Validate 10
Validate 1
Contributor
Give Back 3
Give Back
View profile

Avatar
Validate 10
Level 3
philipk92120636
Level 3

Likes

14 likes

Total Posts

88 posts

Correct Reply

8 solutions
Top badges earned
Validate 10
Validate 1
Contributor
Give Back 3
Give Back
View profile
philipk92120636
Level 3

18-12-2019

Hi everyone!

 

We have two websites that are nearly identical. One is an internal facing version and the other is the public version.

 

We would like to deploy the same Launch code but have the reporting to go into separate report suites. Is it as simple as creating a data element defining the report suite name and then adding it into the Adobe Analytics tool configuration?

 

Also, is there any secret Adobe syntax I need to be aware of when setting up my data element or can I do something like the below:

 

var reportSuite = (window.location.hostname == "www.hostnameInternal.com") ? hostnameInternalProduction : hostnameExternalProduction;

return reportSuite;

 

Many thanks!

Adobe Analytics Data Elements report suites

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Level 2
AnalyticsAlice
Level 2

Likes

10 likes

Total Posts

10 posts

Correct Reply

7 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Level 2
AnalyticsAlice
Level 2

Likes

10 likes

Total Posts

10 posts

Correct Reply

7 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
AnalyticsAlice
Level 2

18-12-2019

Yes, it is that simple! Instead of writing a lot of custom code, you can leverage the Adobe Analytics extension by setting the report suites for each environment using data elements. You reference the value (which should be a string) from the data element by wrapping the data element name in %'s. See below:

Answers (1)

Answers (1)

Avatar

Avatar
Shape 1
Level 3
franzli
Level 3

Likes

28 likes

Total Posts

26 posts

Correct Reply

13 solutions
Top badges earned
Shape 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Shape 1
Level 3
franzli
Level 3

Likes

28 likes

Total Posts

26 posts

Correct Reply

13 solutions
Top badges earned
Shape 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
franzli
Level 3

03-01-2020

This is exactly what I do for my implementations. Using a data element is also nice so you only have one place to change everything.

 

How you have your data element is good. 

 

You can even shorten in by:

return window.location.hostname == "www.hostnameInternal.com" ? hostnameInternalProduction : hostnameExternalProduction;