Using data-analytics-action within Analytics

I was going through stripe.com’s source code and noticed pretty much all their links have these attibutes:

data-analytics-action=""  data-analytics-source=""  data-convert-cta="" 

Obviously these are used to track where the user is clicking from, however I can’t find any information how to use them within Google Analytics or another Analytics software.

How do I actually set something like this up?

Setting up a Destination Goal in Google Analytics using Regex

I want to set up a destination goal in GA to determine when a user reaches the end of a flow, or basically has completed a process.

The problem, the URL changes depending on the activity of the user so we have a URL like this (below) which can vary.

apply/UserAccount?execution=e1s2

The S2 represents the last stage in the flow, which is the page I’m trying to capture. However the e1 could be any number depending on the other activities of the user.

Can someone help with writing a Regex to make sure GA captures the every time a user reaches the last page regardless of the execution number? Is there a way to ignore the “E1” value and simply match the rest? I am completely new to this part so I’d be embarrassed to share what I’ve tried 🙂

Can I use Google Analytics to implement offline conversion tracking?

In a Google Ads account I’m working on, all conversions are imported from Google Analytics. How can I define a Google Analytics goal which has the Google Click ID configurable, i.e. such that reaching the goal is associated with a previously seen Google Click ID? I.e. can I have something to the effect of Offline Conversion Tracking except that I use Google Analytics (and maybe even Google Tag Manager)?

Background:

I’m working on a site which has its analytics managed via Google Tag Manager; some events configured in GTM trigger goals in Google Analytics, which in turn are imported as conversions in Google Ads. For example, “visitor requested a trial account” is a user interaction which is tracked like this.

I’d now like to track if people who requested a trial account actually logged in – and if so, track this as a conversion, too. When a visitor logs into his account, I can check a database to figure out the Google Click ID (if any) which the user got assigned when requesting his account. In case a GCLID is found, I’d like to have a GTM trigger which triggers a tag which bumps a Google Analytics goal (which in turn is imported as a conversion in Google Ads).

Configuring Google Tag Manager accordingly seems straightforward. However, it’s not clear to me what kind of Google Analytics Goal to create which explicitly specifies a click ID.

Can/Should I self-host marketing scripts (Facebook Pixel, Google Analytics, etc.)?

Many marketing providers and plugin providers provide embeddable scripts, but many don’t use a CDN so their response time is slow. They also DON’T cache their scripts because they need to update them from time to time (this is for Facebook pixel, Google and other big guys too) . This slows down the site loading speed.

I’m thinking of hosting some of the script files myself either on my servers or on a CDN, and auto-updating them whenever the original source file is updated (this would be done periodically and programmatically).

Can someone tell me what’s the pitfall of this strategy?

For example, Facebook and Google warn against self-hosting their scripts. I think their main concern is that users will have outdated scripts if these companies update them.

BUT – if I take really good care of that, then is it really an issue? If I check every 5 minutes and update my hosted file accordingly, then I’m assuming I could potentially have lost or bugged out data for those 5 minutes, but no more.

Multiple URL’s in Google Analytics Goals Funnel Step

Have a landing page with 3 packages: 1 of the product, 3 of the product, 6 of the product, each option has their own checkout URL but all will have /thank-you in the URL once purchased.

So they all start on the same LP but there are 3 possible paths to the goal.

If I select Regular Expression what exactly would I put in the Destination? Just /thank-you ?

And if you select regular expression, from what I understand you are supposed to use regex in the funnel steps as well.

Would it then be possible to use the or symbol: | to seperate the 3 possible 2nd steps into funnel step number 2 field?

Something like: /(redoxol-h2|redoxol-h2-3-bottle-bundle|redoxol-h2-6-bottle-bundle)

I tried just add the 3 paths into 3 dif steps but the data was all wrong. If I separate it into 3 different goals the data won’t be accurate either.

Any ideas?

Seperate Google Analytics Properties On Subdomains

I’ve created three websites on one root domain and two subdomains. In Google Analytics I’ve created three properties and each website has a different Google code snippet.

Do I need to make any configuration changes to the Google Analytics properties for this to work properly? Is there a reporting issue when visitors go between these sites?

Thanks!

Start Time of Page Load in Page Timings in Google Analytics

What’s the start event for the ‘Page Load Time’ in the ‘Page Timings’ report?

I’ve read that GA uses NavigationTiming API. Is it v1? Is the start event performance.timing.navigationStart? Also, what’s the end event? Is it domLoaded?

The reason for my question is that we’ve implemented page load metrics with custom code and User Timings. That’s to ensure that we measure time till we finish all additional XHR requests and a user can interact with a page. Our start time was navigationStart.

However, we’ve noticed problem with that. We have a Single-Page Application where even if the URL changes in the browser, it’s done via the history API, as a result the output of performance.timing doesn’t change when you go from one page to another. Hence, the load time could be artificially high for some pages, since navigationStart will indicate the moment the browser went to the web app, as opposed to specific page.

Configure a Google Analytics filter for blog posts when URLs are mixed with other content

I have a WordPress site with a blog section but also a lot of other content, that is not directly related to the blog. Now I want to use Google Analytics and only see the blog traffic, meaning users that click on blog posts.

I know there are ways to filter this, if the blog posts reside in a subfolder, like example.com/blog/my-blog-post, but on my site the link structure doesn’t have that. It’s like this: example.com/my-blog-post

What would be a good way to filter that traffic in Google Analytics? It should also work for any future published posts. I have the Google Tag Manager connected, maybe that might provide a viable option?