Transferring field attribution to UA
See original GitHub issueFirst of all, I want to thank you for an incredibly cool tool!
We are trying to deal with the transfer of attribution of fields to the UA from Google.
Step by step:
- We have connected the library and added a function:
import {onCLS, onFID, onLCP} from 'https://unpkg.com/web-vitals@3/dist/web-vitals.attribution.js?module';
function sendToGoogleAnalytics({name, delta, value, id, attribution}) {...}
- and enabled field attribution:
switch (name) {
case 'CLS':
eventParams.debug_target = attribution.largestShiftTarget;
break;
case 'FID':
eventParams.debug_target = attribution.eventTarget;
break;
case 'LCP':
eventParams.debug_target = attribution.element;
break;
}
case 'FID':
eventParams.debug_target = attribution.eventTarget;
break;
case 'LCP':
eventParams.debug_target = attribution.element;
break;
}
- Passing the results to GA
onCLS(sendToGoogleAnalytics);
onFID(sendToGoogleAnalytics);
onLCP(sendToGoogleAnalytics);
But we do not get the result in the form of fields (div and so on) that led to the greatest changes in CLS, FND, LCP.
Tell me, please, what else do we need to do?
Issue Analytics
- State:
- Created 10 months ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
[UA→GA4] Goals migration tool - Analytics Help
The goals migration tool allows you to quickly recreate eligible goals from your connected Universal Analytics property as conversion events in your Google ......
Read more >Before you begin a GA4 ecommerce migration (gtag.js)
This document provides an overview of the options available to migrate your Universal Analytics (UA) ecommerce implementation to a ...
Read more >GA4 Problems - 4 Challenges With Google Analytics 4
Hi there,. Data from UA will not automatically be transferred to GA4. The data models for the two properties are different. In UA,...
Read more >Tutorial 9. Attribute Transfer Node - YouTube
This tutorial looks at the practical applications of the Attribute Transfer Node which passes information from one object to another based ...
Read more >Patient Attribution - Connecticut State Office of Health Strategy
But there are instances in which a patient decides to seek care from another provider that are reasonable and do not present a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Many thanks to you, Barry! It works!
Once again and many many many times, thank you very much, Barry!