Unlock the power of seamless web-to-app tracking with AppsFlyer’s Smart Script feature!

By AnalyticsNo Comments

It is quite common to run Google Search Ads campaigns (also called, Search Engine Marketing, or SEM for short) for your apps, but using deep links as the final URL can often result in a violation of SEM advertising policies. A common solution for this is to use a website as a gateway for users, guiding them towards downloading the app through clear call-to-action (CTA) buttons when accessing the website via a mobile device.

This is where AppsFlyer’s Smart Script comes into play, to help track this journey from the web (the landing page) to the app! In this article, we will provide our use case and implementation of this powerful tool. We’ll also share tips on how to properly check your implementation to ensure accuracy of implementation.

Stay tuned! We will also use ChatGPT as a tool to during implementation of this guide 🙂

For who is this guide?

A decent amount of experience is needed! If you already have background knowledge of OneLink and app tracking, that will help. Coding experience is not required but you will have to be comfortable with copy-pasting and adjusting code.

In what circumstances does this guide apply?

  1. You are using AppsFlyer
  2. You are having a website that guides users to your app
  3. You are using UTM or custom parameter tracking for your campaigns

What exactly is AppsFlyer’s Smart Script?

Smart Script is a script that you place on your website which will allow you to capture various parameter types from different media sources. Basically, when your users land on the website from different sources and via different URLs, the script will dynamically create links including deep links that optimize and personalize web-to-app experiences.

In other words, it helps reduce the blind spot of your organic installs from your web campaign by implementing Smart Script which prompts users to download your app when they visit your website.

What’s the point of having Smart Script tracking when we already have Deep Link/OneLink with proper in-app event tracking?

Let’s say you’re setting the OneLink template to direct users to the specific content within your app, or to the App Store or Play Store if they haven’t installed the app yet. You then add this OneLink URL to the CTA buttons on your website so that when users click the buttons, they behave according to the settings in the OneLink template.

There is a high chance that the traffic source information will be lost when doing this because those parameters will not pass through, and users who install the app will be attributed to AppsFlyer as direct (or “organic”) traffics. Therefore, you will need a bridge to close the gap of users moving between the web and the app. That’s where Smart Script comes into play 🙂

The guide! (in form of an example)

Say we run SEM campaigns to promote an app, but first, we lead users to our company website (marketyze.io) which contains CTA buttons with a prompt to download. In the same campaign, we would also like to track performance, so we use UTM tracking parameters Example of the URL with UTM tracking:

This kind of URL will be called an “Incoming URL.”

Again, let’s say we would like to see how many people installed this app and took other in-app actions in AppsFlyer’s report after clicking on my SEM campaigns. We need to complete the tracking journey by following these 2 steps:

1. Generate Smart Script from AppsFlyer’s interface

a. Select OneLink Template for your Smart Script

b. Map your URL’s parameters

From the example URL, I have utm_source, utm_medium, utm_campaign, utm_content, and utm_term. I will need to map these with fields that Appsflyer provides. You can see the example of how we map in the screenshot below:

For the default value, which is the value you want to be shown on your dashboard, you can define to whatever you’d like to see when the parameters can’t be mapped. For example, the URL is missing utm_source, under Media Source in the report, this will show as Website

For the override values, value from the incoming URL can be replaced with the value you specify in this field. For example, if the value in the incoming URL is google, the value in the outgoing URL can be changed to paidads

c. Generate and embed the Smart script on your website

Once you add all the necessary parameters, there are two options to implement. First directly embed this script in your website with a web developer or you can use Google Tag Manager (or GTM). In this case, and our recommendation, is to use GTM..

When you click generate, you will be able to copy the script:

2. Create tag in Google Tag Manager (GTM)

a. Create a new tag, name the tag, click Tag Configuration, and select Custom HTML

b. In the HTML box, paste the generated Smart Script code

c. Click ‘Triggering’, create a new trigger, name it, and choose “All Pages” Trigger Configuration

d. Click Save

Lastly, you will need to check the outgoing URL for your button clicks as well

To ensure that Smart Script is working as intended and that the value in AF_SMART_SCRIPT_RESULT returns accurately, check the outgoing URL. When you generated the Smart Script on the AppsFlyer interface, you should have specified the right outgoing URL, which should be the same.

I will again take the example from earlier URL with UTM, the outgoing URL should be like this:

To check what the outgoing URL looks like, you’ll need to inspect the clicks and see their href attribute. See the picture below:

If the Smart Script doesn’t produce a OneLink URL when the button is clicked just as in the example, I’d recommend the other option which is to consult with your web developer. In case this is not an option, you could still use GTM by assigning the URL to your button clicks directly.

Here, I will use a bit of help from ChatGPT! See my prompt below 👇🏻

However, we still need some modification a bit as per what ChatGPT has explained at the end.

Therefore, I have made the following changes:

1. I changed from https://www.example.com to be {{Button URL}}

    • Then create a variable from custom javascript that will return value from AF_SMART_SCRIPT_RESULT

    • Or you can copy directly from this:
function() {
 
return window.AF_SMART_SCRIPT_RESULT.clickURL;
}

2. Add the condition that the script must only work for mobile device to make sure that it’s not working on desktop

    • So here is the final outcome which you can copy and paste in your GTM
<script>
 
if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
   
var links = document.querySelectorAll(‘[href*=”sem.onelink”]’);
   
for (var i = 0; i < links.length; i++) {
      links[i].addEventListener(
“click”, function(){
       
this.href = {{Button URL}};
      });
    }
  }
</script> 

After that, I can just create a Custom HTML Tag using Dom Ready or Page View as a trigger and paste the code down as in the screenshot.

Then you are good to go!

Now, we’d love to hear from you if you find this article interesting. In case you are interested in our services and would like us to provide help in related topics, please feel free to contact us via email analytics@maketyze.

Power BI vs. Tableau vs. Looker Studio: Comparing data visualization tools from a digital marketing agency perspective

By AnalyticsNo Comments

It is undeniable we live in a world that is full of data. Our field, digital marketing, is one of the sectors that heavily utilizes data to gain insights and drive business growth. However, sorting through large amounts of data is difficult!

Data visualization tools, like Looker Studio, Power BI, and Tableau, help simplify data by creating clear visuals.

In this article, we will compare these tools based on 7 features using a 5-point rating system and a weighted decision matrix. A summary table will determine the best tool for a digital marketing agency environment.

Get to know each tool:

Before we look at the features, below is a short introduction to each of the three tools and their histories 🙂

Power BI

Power BI is a business intelligence and data visualization tool for converting data from various sources into reports or dashboards. At first, it was named Project Crescent, which was designed by a team at Microsoft and available for public download in 2011. Later it was renamed to Power BI for Office 365 and unveiled by Microsoft in 2013.

Tools for the digital marketing agency

Tableau

Tableau is a business intelligence and data visualization tool for data analysis that helps simplify large volumes of raw data into understandable worksheets and dashboards. It was first launched in 2003 by Tableau Software; a software company in the US and has since been acquired by Salesforce in 2019.

Tools for the digital marketing agency

Looker Studio

Looker Studio is a cloud-based and open-source data visualization tool that helps turn data into informative, easy-to-read, easy-to-share, and customized reports and dashboards. It was launched by Google in March 2016 as a part of the Google Analytics 360 suite under the name “Google Data Studio”. In October 2022, it was rebranded to Looker Studio and became a part of the Google Marketing Platform.

Tools for the digital marketing agency

Comparison of 7 key features

1. Device & OS Compatibility (Weight 20%)

(Power BI – 4 | Tableau – 5 | Looker Studio – 5)

When considering which data visualization tool to use, it’s important to make sure that the tool is compatible with your device’s operating system, with the most popular operating systems being Mac OS and Windows OS.

All three tools, Looker Studio, Power BI, and Tableau, are compatible with Windows OS. Looker Studio and Tableau also support Mac OS, while Power BI is the only tool that does not currently support Mac OS. So, if you are using a Mac OS device and looking to use any of these tools, Looker Studio or Tableau might be the best choice for you.

Tools for the digital marketing agency

Looker Studio is a cloud-based service and can easily be accessed through a web browser, whereas it’s recommended to use the desktop version for Power BI and Tableau.

Tools for the digital marketing agency

Even though Power BI does not support Mac OS, in other ways, if you or your company is using other Microsoft products, you could benefit from using Power BI due to it being in the Microsoft ecosystem; for example, familiarity with the user interface or the ease of integrating with other Microsoft products. Like Power BI, the same applies to Looker Studio; users staying in the Google ecosystem may find this visualization tool simpler and more convenient to use.

Digital marketing agency

 

2. Pricing (Weight 20%)

(Power BI – 3 | Tableau – 2 | Looker Studio – 5)

When comparing BI tools, one important factor to consider is pricing. Each tool may have multiple pricing options.

Looker Studio stands out when it comes to cost, as it is completely free to use. This makes it a great option for small businesses or startup companies that are just starting to incorporate data visualization into their operations. It could be an ideal choice, as the end-to-end process of creating visualization is free of any cost.

Power BI and Tableau also have a free version for users but they come with limitations in sharing and collaborating capabilities. For example, with the Power BI free license type, you are able to create content but cannot share them with other users, unless you decide to publish them to the public web. Not super convenient if any of the data shown is confidential.

Power BI’s above concept also applies to Tableau as it offers a free version called Tableau Public which can only be accessed through a website. (https://public.tableau.com). The good: features are the same as the desktop version. The bad: there are limitations in terms of data confidentiality when publishing to the public web.

In conclusion, the free versions of Power BI and Tableau are not suitable for use within a business or for commercial purposes.

If you choose to go with a paid version, Power BI has two options: an individual user license starting at $9.99 per month per user, and an organization license at $4,995 per month per capacity. Tableau’s pricing, on the other hand, is based on the specific needs of the user.

The cheapest one is Tableau Viewer license costing $15 per month per user for only the ability to view, comment, and interact with dashboards. To create content, it’s required to subscribe to Tableau explorer license at $42 per month per user, with the cost potentially adding up to $70 per month per user if you would like to prepare data within Tableau Prep Builder by subscribing to Tableau creator license.

And so, for dashboard creation, Power BI is cheaper than Tableau. But again, Looker Studio is (for now) free.

It’s important to keep in mind that comparing the pricing, or cost, of these tools is crucial for any organization that wants to select the best fit for them. Depending on the scale, functionality and usage of the organization can make one tool more or less appealing in terms of cost.

3. User Access (Weight 20%)

(Power BI – 2 | Tableau – 3 | Looker Studio – 4)

Say, like us, you serve multiple clients. The share feature should definitely be a factor taken into consideration as dashboards may contain sensitive information

Sharing and collaborating on Looker Studio is easy to do as you can share your reports or dashboards to external users by entering their email address. Actually, this is easy for both internal and external sharing. One constraint is that it requires a person to have a Google account, such as a Gmail account, to get shared.

When it comes to sharing Power BI reports, there is an extra step that needs to be taken. Reports must be published to the Power BI service (app.powerbi.com) first. Additionally, users must have a Pro license to share content, and those who will be viewing the report must also have the same license type. For example, if the person creating the report in your company has a Power BI Pro license, your clients must also have Pro licenses in order to interact with the dashboards. The downside of this is that it can be an added complexity for clients, as they are required to pay for a license to access the information.

Additionally, for Power BI, another way to share content with external users is to purchase a Premium capacity license type for the company. However, this approach comes with a large cost at almost $5,000 per month – not worth it if your organization is relatively small.

For Tableau, sharing is similar to Power BI but more straightforward: first, you need to publish worksheets to Tableau Server, then you can share the visualizations with other people by sending a link or an email. Just remember: clients – or external users – need at least a Tableau Viewer license.

4. Load Speed and Tool Stability (Weight 12.5%)

(Power BI – 4 | Tableau – 5 | Looker Studio – 2)

When it comes to the three BI tools, load speed is a crucial factor, as no one wants to wait around for a dashboard to load.

Looker Studio falls behind the other two options. The more functions or components you add to your report, like visualizations, icons, or large amounts of data (like 100,000 or more rows), the slower the report will become. When using Looker Studio, you may need to refresh the screen more frequently to keep the tool stable.

On the other hand, Power BI and Tableau are better options for load speed and smooth interactions among visualizations. These tools are also more stable and can handle large amounts of data without any errors. So, if you’re looking for a fast and stable tool, Power BI or Tableau might be the better choice for you.

If comparing between tools looking purely at the maximum volumes of data they could support, Tableau outperforms Power BI, as Power BI can handle a limited volume of data at only 10 GB unless it’s required to use a cloud service like Azure; Tableau does not have a data size limit and can handle as much data as your local storage can handle without any requirement for cloud service.

 

5. Visualization & Customization (Weight 12.5%)

(Power BI – 4 | Tableau – 5 | Looker Studio – 3)

Different specific options of visualization are core criteria for evaluating data visualization tools, as in the name! From a marketing perspective, all three tools, Looker Studio, Power BI, and Tableau, provide in-built basic visualizations that are essential for data analysis. These include charts like bar charts, column charts, combo charts, line charts, pie charts, area charts, heatmap tables, maps, and treemaps.

Apart from types of visualizations, report customization also plays an important role to make visuals look nice and more appealing. Below is a small breakdown of specific customization options per tool:

  • Color: When it comes to adding color to your reports or dashboards, all three tools offer similar options. Power BI and Looker Studio allow you to set a consistent theme color across the entire report, while Tableau puts more emphasis on conditional formatting. This allows for increased visibility and customization, allowing you to focus on the important aspects of your data. Tableau also provides more granular options, giving you a wide range of color palette options and the ability to adjust the number of stepped colors. It’s worth noting that Looker Studio does not have the option of conditional formatting for certain visualizations like bar charts, and the users can only select a single color representing that data field.

  • Size: Within all three tools, you are able to adjust the size of your dashboard and report pages. The size of visualizations is also adjustable, by selecting and dragging frames to freely resize. Additionally, Tableau is more detailed in resizing bars or columns in charts.

Tools for the digital marketing agency

  • Text and font: You can add texts and also have several options for font styles and sizes. Additionally, you can make granular adjustments, such as editing titles, labels, or legends separately.

  • Filter: The filter feature comprises filtering data on specific visuals, selected pages/reports, and all pages/reports. Tableau has the greatest filter functions as you are able to do everything by selecting. Filtering on specific visuals, or selected pages is also available in Power BI and Looker Studio, but you need to manually add filters to each visualization or each page yourself.

  • Images or icons: All three tools allow you to add images and make them clickable to external websites or pages within the reports. Power BI offers additional action types of clickable images, such as asking Q&A. Tableau provides separate features of page navigation and Q&A, in addition to clickable images to external websites.

Overall, all three tools provide enough visualization options for data analysis in digital marketing, however, the granularity of customization varies among the tools; in descending order from Tableau to Power BI to Looker Studio.

 

6. Use Interface & Navigation (Weight 7.5%)

(Power BI – 4 | Tableau – 3 | Looker Studio – 5)

Overall, Looker Studio, Power BI, and Tableau have straightforward interfaces and easy-to-understand navigation in terms of tool panels and report tabs. Most guides and descriptions of each function are provided when you hover over the icons.

Tools for a digital marketing agency

Toolbars are at the top of the screen for all tools. Looker Studio and Power BI are similar in that their data and customization panel is on the right side of the screen whereas Tableau’s is on the left.

By default, both Power BI and Tableau have a page or report tab at the bottom of the screen whereas Looker Studio’s is on the left.

Three of them have drag-and-drop functionality. Tableau has a bit of a plus here: it can automatically generate a visualization that suits the type of data once you drag it into the worksheet, making further adjustments after.

For Power BI and Looker Studio, you’ll think first what type of visuals you need and then drag data into the dimensions and metrics sections.

However, due to the complexity level of features in Power BI and, especially, Tableau, it could make their interface complicated for beginner users who need time to become familiar. On the other hand, Looker Studio has a clean and intuitive interface but it trades off with fewer functions.

 

7. Creating Custom Fields (Weight 7.5%)

(Power BI – 5 | Tableau – 5 | Looker Studio – 4)

Custom fields, such as calculated fields, can be extremely useful for marketing analysis. All three tools, Looker Studio, Tableau, and Power BI, allow you to create calculated ratios or metrics using basic formulas and operators commonly used in spreadsheets.

However, when it comes to more advanced formulas for transforming data, each tool has its own unique capabilities. Power BI, for example, offers deeper DAX (Data Analysis Expression) functions. Tableau has the LOD (Level of detail) expression, giving you more control over the level of granularity you want to compute.

List of functions of each tool

Power BI documentation

Tableau documentation

Looker Studio documentation

More advanced features and higher levels of granularity, in turn, come with a higher learning curve and more technical knowledge.

Which tool is the best?

After reading about the comparisons between these three tools, you may be wondering which one is the best fit for you, your digital marketing agency, or in other scenarios. Each tool has its own strengths and weaknesses, so it’s important to consider which features are most important to you. In this article, we’ve provided a summarized table to help you make your decision.

Based on the features we gave the highest priority to – device & OS compatibility, pricing, and user access – Looker Studio comes out as the winner. However, it does have some weaknesses in areas like load speed and customization options.

Keep in mind that the weight given to each feature can be adjusted depending on what’s most important to your company. We would definitely encourage you to use the summarized table provided to evaluate your decision and see how the results compare!

tools comparison score for the digital marketing agency

Q&A

1. Are coding skills a must to create stunning reports and dashboards?

No, Looker Studio, Power BI, and Tableau do not require coding skills. They allow you to easily create and customize your reports with a drag-and-drop interface. And don’t worry if you are not a coding expert, these tools cover simple formulas and syntax for data transformation that are easy to learn!

2. How many data sources can Looker Studio, Power BI, and Tableau connect with?

All of them have got you covered with hundreds of connectors from Google Sheets to various SQL servers and even CRM platforms. Both Tableau and Power BI provide a wide range of file and database connectors, with Power BI you can additionally integrate with various Microsoft products. Looker Studio offers free connectors from Google and over 500 partner connectors of which some may require an additional fee.

3. Are dashboards by Looker Studio, Power BI, and Tableau able to stay fresh and up-to-date?

Yes! All three have automatic data refresh options which will make it easy for you to update your data sources, so you always have the most current and up-to-date information

4. What kinds of companies are Tableau and Power BI fit for?

If you have an affordable budget and want advanced analysis, such as machine learning or forecasting, both tools are great options for you. However, you can narrow down your options:

  • If your company is medium to large in size and already in the Microsoft ecosystem, Power BI would be a greater fit.
  • However, if you need high-detailed customizations and deal with a large volume of data, Tableau might be a better choice.

5. Comparing Power BI and Tableau, which one has a steeper learning curve for beginner users?

If you are new to data analysis, Tableau will be a bit more challenging for you as the tool is geared towards experienced data or business intelligence analysts and requires advanced analytics skills to fully utilize its capabilities. On the other hand, Power BI has a plus that its interface is similar to other Microsoft products.

We’d love to hear from you if, and how you apply our summarized table to evaluate your decision! If you need any help or are interested in Business Intelligence service, please feel free to contact us via email: 

Quick Guide to automate your TikTok Ads report with Google Sheets (with template!)

By AnalyticsNo Comments

There are many tools out there that allow you to pull data easily from your TikTok Ads accounts into a Google Spreadsheet for further processing. However, they usually come at a monthly cost. Therefore, we would like to share a solution to automate this data pulling for free by using our template!

In this article, we will also share what you need in order to use our template, things to look out for, and what the report will look like.

PREREQUISITES BEFORE STARTING

In order to use Tiktok API to pull data, you will first need to register as a developer here and create an app.

For the expected outcome, please refer here to see support dimensions and metrics.

(Keep in mind that there can only be one ID dimension and one time dimension in each request. For example, you can only have campaign_id with stat_time_day but not with the adgroup_id or ad_id ID dimensions)

Wait until your app is approved

After the app is approved, you will see your app id and secret.

The next thing you should get from the app is an authorization code (auth code).
Here is how you can get the auth code:

  1. First, go to https://ads.tiktok.com/marketing_api/apps/
  2. Choose your app

    Click on Marketyze Business Manager
  3. Now you will see app information including app id and secret
  4. Then you will need to copy the URL from Advertiser authorization URL

    Click on Copy

  5. You will need to open the copied URL in a new browser’s tab. It will redirect you to permissions page and you will need to go through verification process
  6. Once you’ve verified, you will again be redirected to whatever you had entered as the app’s Advertiser Redirect URL

    Here you will be able to see your auth code in the URL. See our Marketyze example below!

Please keep in mind that the auth code is for a one time use only. If you need to generate a new auth code, you will need to generate a new token as well.

Now you’re ready to get your TikTok Ads data!

STAGE 1: Generate your access token!

  1. Make a copy of this Google Sheet

     

  2. In the tab name “(1) Generate Token”, fill in your app id, auth code, and app secret.

    Click on application

  3. Then click on the “Generate Token” button

  4. Once it’s done, you will see the access token with run status and time

Click on application

STAGE 2: Get your report!

  1. In the tab name “(2) Configure”, fill in your report name, ad account id, data level, dimensions, metrics, and date range.

    Click on application
  2. Click on the “Run Report” button. This might take a long while, perhaps around 3-5 minutes

    Click on Drawing

  3. Once done, you will see the run status and the new tab created with a Tiktok_ prefix along with your defined report name

    Your report is ready! Below an example

Untitled step

If you want to run the report again, go back to the sheet and click the “Run report” button in the sheet “(2) Configure.” There is no need to recreate the token. Please keep in mind however, that re-running the report will override — and not merge — the previous data.

We’d love to hear from you if, and how you are using this template. If you need any help, please feel free to contact us via email: analytics@marketyze.io

How-to: Bulk set up tracking for link clicks on your website using Google Tag Manager

By AnalyticsNo Comments

Sometimes there might be a lot of similar links on your websites that you’d like to track as a “Click” event and see reported in Google Analytics. Examples of these are clicks on your Social Media buttons, clicks on your contact forms, or any group of similar link clicks. However, if you have a lot of buttons under one category and have to create tags for each of those events, it will get tedious creating tags one by one. We’d like to show you how to save time by using Google Tag Manager’s (or GTM) Lookup Table and RegEx Table variables.

Pre-requisite before starting

All you need to do is ensure that GTM is properly installed on your websites! Then we’ll begin by creating variables, triggers, and tags. You can follow the steps outlined below.

Create variables – Lookup Table

A Lookup Table is a variable that will allow you to pair values from one variable with your desired value. So we can decide which link clicks to track and which value to return here.

1. Click on Variables

Click on Variables

2. Click on New

Click on New

3. Click on Variable Configuration

Click on Variable Configuration…

4. Click on Lookup Table

Click on Lookup Table

5. Select Choose Built-In Variable from Input Variable

6. Click on Click URL

This built-in variable, Click URL, will display the URL of the page where the button was clicked. This is where we indicate which link click to create as an event.

Click on Click URL

7. Click on + Add Row

Click on + Add Row

8. Type your URL of any link clicks you’d like to track into input

Type your URL of any link clicks you'd like to track into input

9. Type “Social Click – Facebook” into Output

Here, I like to set my naming convention by categorizing and destination which the separator will be a dash symbol (-). For example, I name click to my Facebook page as “Social Click – Facebook.” The category is “Social Click” and the destination is “Facebook”

Type

10. Click on + Add Row

If you have several link clicks to other websites, you can fill in more by clicking Add Row

Click on + Add Row

11. Name your variables and click “Save” – Here I name it as “GA – Lookup Table”

Name your variables and click “Save” - Here I name it as “GA - Lookup Table”

Create variables – RegEx Table

In GTM, a RegEx Table is used to determine whether or not an input pattern matches and, if so, to return the corresponding output value.

1. Click on New

Click on New

2. Click on Variable Configuration

Click on Variable Configuration…

3. Click on RegEx Table

Click on RegEx Table

4. Click on {{Click URL}} from Input Variable

Click on {{Click URL}} from Input Variable

5. Click on + Add Row

Click on + Add Row

6. Paste “(.*?) – (.*)” into input

This is a regular expression that contains 2 capturing group which are (1) 1st capturing group (.*?) means to match any character until the next delimiter and (2) 2nd capturing group (.*) means to match any character until the end of string, this will ignore the next delimiter. For a dash (-) matches the character (-) literally.

Paste

7. Type “$1”

If you remember from creating Lookup Table, we have defined the naming convention with dash (-) separator. $1 here is equivalent to the text before the separator so this variable will return any value before the dash

Type

8. Name the variable – Here I name it as “GA – Category”

Name the variable

9. Click on Save

Click on Save

10. Again, click on New to create RegEx Table for label

Click on New

11. Click on Variable Configuration

Click on Variable Configuration…

12. Click on RegEx Table

Click on RegEx Table

13. Click on {{Click URL}} from Input Variable

Click on {{Click URL}} from Input Variable

14. Click on + Add Row

Click on + Add Row

15. Paste “(.*?) – (.*)” into input

Paste

16. Type “$2”

$2 here is equivalent to the text after the separator so this variable will return any value after the dash

Type

17. Name the variable – Here I name it as “GA – Label”

Name the variable

18. Click on Save

Click on Save

Create Triggers

1. Click on Triggers

Click on Triggers

2. Click on New

Click on New

3. Click on Trigger Configuration

Click on Trigger Configuration…

4. Click on Just Links

Click on Just Links

5. Click on This trigger fires on Some Link Clicks

Click on This trigger fires on Some Link Clicks

6. Select GA – Lookup Table

Select GA - Lookup Table

7. Type “undefined” – The operator here should be “does not equal”

This means that any link clicks happen their {{Click URL}} are in the Lookup Table will be fired

Type

8. Name the Trigger – Here I name it as Trigger – Link Click

Name the Trigger

9. Click on Save

Click on Save

Create Tags

1. You need to create tag to send link click event to GA by selecting as following:

    1. Tag Type: Google Analytics: Universal Analytics
    2. Track Type: Event
    3. Category: Select from variable {{GA – Category}}
    4. Action: Click (you can define whatever you’d like here)
    5. Label: Select from variable {{GA – Label}}

2. This tag need to be fired on “Trigger – Link Click” so choose this as a trigger of this tag

3. Name your tag and click “Save” – Here I name it as “GA – Link Click

Once you have done your set up, you will be able to see your event on Google Analytics under event report!

Bonus – Another shortcut

Free templates that you can use with just a few changes required from you!

en_USEnglish

Our website uses cookies and other tracking technologies to improve your browsing experience as set in our Privacy policy.

Privacy Preferences

You can turn your cookie settings on and off. Cookies of each type are available on request, except for necessary cookies.

Allow All
Manage Consent Preferences
  • Necessary cookies
    Always Active

    These cookies are strictly necessary for the operation of our website. You cannot disable these cookies.

Save