You can connect your Awesome Table with Google Analytics to keep track of your app's usage. In this article, you will learn how to update Analytics whenever a user clicks a link.
info If your apps were configured with a Universal Analytics Tracking code (which is now deprecated), you can update their settings with a Google Analytics 4 tracking code. No change to your spreadsheet template is required.
In the settings tab, make sure you specify your Google Analytics Tracking ID.
Now in your templates, write the links to track with the following syntax:
<a href="{{Url}}" onclick="gtag('event', 'pageview', {page_location: '{{URL to track}}',
});">
{{Link Text}}
</a>
Markers:
- {{Url}}
The header of the column containing the URL - {{URL to track}}
The header of the column containing the partial URL you want to record in Google Analytics. For example if you want your viewers to download http://www.example.com/files/download.zip you can use the partial URL: /files/download.zip - {{Link Text}}
The header of the column containing the link text.
info Learn more: Header templates.