Description Usage Arguments Value Examples
The Google Analytics tracking ID looks something like UA-XXXXX-Y. For example UA-25938715-4. Get your own tracking ID at the Google Analytics website. All collected user interactions will be logged with that tracking ID.
1 | ga_set_tracking_id(x = "UA-25938715-4")
|
x |
a character string with the Google Analytics tracking ID |
invisibly a list all general settings used to send data to Google Analytics
1 | ga_set_tracking_id("UA-25938715-4")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.