Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Important Improvement] Support for GA Enhanced Link Attribution (and for regular link click tracking) #3679

Closed
ddenev opened this issue Mar 6, 2018 · 8 comments
Labels
request/feature Indicates a Request for a non-existing New Feature.

Comments

@ddenev
Copy link

ddenev commented Mar 6, 2018

[TL,DR:] Please add proper support for Google Analytics Enhanced Link Attribution to links created by Elementor. In short, ELA allows us to differentiate in GA between separate links that lead to the same page. For example, I you have 2 links A and B, both pointing to /products, then in GA you could have different percentages for A and B depending on number of click on A and on B separately.

The long story:
Here are the main requirements (apart from the separate configuration to enable it in GA and GTM) in order for the ELA to work - https://support.google.com/analytics/answer/7377126?hl=en&ref_topic=2558810.

Quoting:

For Enhanced Link Attribution to work effectively, all links for which you want enhanced click attribution should have an ID attribute. If the click-target element does not have an ID, the plugin will climb the DOM up to 3 levels to find an element with an ID.

That means that all the links (the <a> elements) should have an ID attribute, or at least their parent (2nd level) or grand-parent (3rd level) should have an ID attribute.

Currently that does not seem to be the case with Elementor links. I did not thoroughly check all the links Elementor creates, I only checked buttons and Image Box links. None of these had an ID attribute anywhere near the <a> tag.

Important: Even if I add an id from the Advanced tab, it is too far from the <a> tag - 4th level for the buttons and 5th level for the Image Box.

Please consider adding the possibility to specify IDs for <a> tags (or close to them) so that we can benefit from GA's ELA. I consider this an important improvement, hence the title. I hope you will also agree that this is important for GA tracking.

Thanks!

PS: I just realized that we would also need to be able to specify IDs on <a> level for the regular link click tracking via GTM events.

@ddenev ddenev changed the title [Important Improvement] Support for GA Enhanced Link Attribution [Important Improvement] Support for GA Enhanced Link Attribution (and for regular link click tracking) Mar 6, 2018
@bainternet
Copy link
Contributor

@drank

for analytics Enhanced Link Attribution, you can set the number of levels that the plugin will climb up the dom :

ga('require', 'linkid', {
  'cookieName': '_ela',
  'duration': 45,
  'levels': 5 // <== 5 should do it in most cases
});

ref

as for GTM still checking.

@bainternet
Copy link
Contributor

@drank

same goes for GTM

gtag('config', 'GA_TRACKING_ID', {
  'link_attribution': {
    'cookie_name': '_gaela',
    'cookie_expires': 60,
    'levels': 5
  }
});

ref: https://developers.google.com/analytics/devguides/collection/gtagjs/enhanced-link-attribution

So I think that this with widget custom ID should do for most cases, correct me if I'm wrong...

@bainternet bainternet added the status/needs-feedback Indicates when an Issue, Pull Request, or Discussion awaits Feedback from the poster. label Mar 7, 2018
@ddenev
Copy link
Author

ddenev commented Mar 7, 2018

@bainternet

I see what you mean and thanks a lot for the find! Unfortunately both of the above examples are only for GA (the 2nd one as well) and do not apply to GTM. See https://www.lunametrics.com/blog/2017/12/12/what-is-gtag-google-analytics/

I've searched but could not find how to make GTM change the depth level.

But the ELA is only only one of the possible use cases. There are cases when we would benefit from having an ID at <a> level in which there will be no tracing up the DOM tree to find one. For example, I might have 2 buttons alongside and would like to distinguish clicks between the one and the other.

Additionally, there are may widgets that can have more than one links in them (e.g. Posts, Portfolio, Carousels, Icon Lists, etc.) and having one ID at the widget level might not be enough. In this case EAL will not work either without having the IDs on the <a> level.

I understand the complexity of the feature but IMHO it is important to be able to identify links for tracking purposes.

What do you think?
Would also be beneficial to hear other users' opinions.

@ddenev
Copy link
Author

ddenev commented Mar 7, 2018

Re the ELA and GTM DOM level - https://productforums.google.com/forum/#!topic/tag-manager/VlLo7mpxudw.

Very unfortunate!

@bainternet bainternet added request/feature Indicates a Request for a non-existing New Feature. and removed status/needs-feedback Indicates when an Issue, Pull Request, or Discussion awaits Feedback from the poster. labels Mar 20, 2018
@arielk
Copy link
Contributor

arielk commented Jul 16, 2018

It's already released.
Ref: #4535

@arielk arielk closed this as completed Jul 16, 2018
@ddenev
Copy link
Author

ddenev commented Jul 17, 2018

@arielk ,

No, it is NOT released!

Have you ever read the original request? It was about having the possibility to specify IDs for ALL links created by Elementor and you closed the request only because you implemented it for Buttons?

When will you stop this practice of implementing 10% of a request and then close the whole request as implemented? And then you put a glorious release notes post saying that you have implemented the much requested feature. This is similar to lying. You are Devs not politicians, come to your senses!

I've given you all the needed information so that you could implement it properly and you failed.

Please sent this post to Ben Pines - he was asking about an example of how Elementor is failing to listen to their paying customers.

@arielk
Copy link
Contributor

arielk commented Jul 17, 2018

@drank

I'm sorry I did not understand you well. I went over the request again and unfortunately, I do not see at the moment a way we can add it to the ALL links, if you have more specific places that it's necessary, we will happy to add it.

Again sorry for the mix-up.

@ddenev
Copy link
Author

ddenev commented Jul 17, 2018

@arielk

Ok, if it was closed by mistake then could you please reopen it?

I am sure that everywhere where you have this control:
image_1
you can add a simple input field for the ID attribute, shouldn't be that hard.

For the purposes of GA tracking all links are important, so there are not specific places that would require this special treatment more than some others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request/feature Indicates a Request for a non-existing New Feature.
Projects
None yet
Development

No branches or pull requests

3 participants