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.
Solved! Go to Solution.
Hi Jeff,
You can select a data element in place of hardcoding it AA Extension. Here is what you need to do.
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
)
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
Views
Replies
Total Likes
Hi Jeff,
You can select a data element in place of hardcoding it AA Extension. Here is what you need to do.
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
)
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
Views
Replies
Total Likes
Asheesh,
Thank you, that was exactly the information I was looking for!
-Jeff
Views
Likes
Replies