Elegant supports the popular web tracking service, Google Analytics.
Get your property
ID from your Google
Analytics account. It has this format UA-XXXXX-X
.
Set GOOGLE_ANALYTICS
variable to it in your configuration.
GOOGLE_ANALYTICS = u'UA-00000000-1'
If you have a Google Analytics Measurement ID, which has the format G-XXXXXXXXXX
, you should
set MODERN_GOOGLE_ANALYTICS
. This will enable the gtag.js
on your site.
For more information on the difference between the two, see here.
MODERN_GOOGLE_ANALYTICS = u'G-ABCDE12345'
That’s it. Elegant will take care of the rest.