Google Analyticts Tracking code

Permalink Browser Info Environment
Hello Mainio,

I really like this add-on! It works like a charm!

Is there a way to add an Analytics tracking code per domain?
Like to hear from you.

Kind regards,

Jeffrey Winston

Type: Discussion
Status: In Progress
recomdesign
View Replies:
Mainio replied on at Permalink Reply
Mainio
There is no user interface for this purpose.

The programming tips section in the doc shows how to get e.g. the domain based on the current domain and get the details of it. Based on this, you could create a couple of if clauses that checks the domain and shows the correct tracking code.

https://www.concrete5.org/marketplace/addons/multiple-domains1/progr...
recomdesign replied on at Permalink Reply
recomdesign
Thanks for the tip!

I managed to create an Google tag per domain.

Kind regards,

Jeffrey Winston

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.13
Version Installed - 5.7.5.13
Database Version - 20160615000000

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.