GithubHelp home page GithubHelp logo

tiggerito / ga4-scripts Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 0.0 106 KB

Scripts and notes related to my talk at the DeepSEO Conference 2021

License: MIT License

HTML 76.66% JavaScript 14.55% C# 8.79%

ga4-scripts's Introduction

Hi there ๐Ÿ‘‹

ga4-scripts's People

Contributors

tiggerito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ga4-scripts's Issues

user_ltv.revenue is null

Hello there! I stumbled upon your scripts and noticed that the user_ltv.revenue column appears to be null in the BigQuery dashboard. Do you happen to have any insight into why this may be the case? Just to provide some context, I am using Firebase to track metrics and transfer them to BigQuery for more in-depth analysis.

Materialized table with insert / update instead of replace?

Hi,
would it be possible to include a version of your materialized table (bigquery-materialize-table-web-vitals.sql) where you don't replace data but only update data or insert data that does not match the existing data in the table ?

I'm in the situation that Bigquery events_ table only keeps data for 30 days, so I loose data whenever I replace them in my materialized table, instead of getting a good long performance data history.

Thanks a lot in advance!

I currently have the GA web vitals script. Should I keep it or replace it with the GA4 script.

I currently have the GA web vitals script (see below).
Should I keep it if I change over to the GA4 script?
Or will that result in duplicates?
www.flixxy.com

<script type="module"> import {getCLS, getFID, getLCP} from 'https://unpkg.com/web-vitals?module'; function sendToGoogleAnalytics({name, delta, id}) { // Assumes the global `gtag()` function exists, see: // https://developers.google.com/analytics/devguides/collection/gtagjs gtag('event', name, { event_category: 'Web Vitals', // Google Analytics metrics must be integers, so the value is rounded. // For CLS the value is first multiplied by 1000 for greater precision // (note: increase the multiplier for greater precision if needed). value: Math.round(name === 'CLS' ? delta * 1000 : delta), // The `id` value will be unique to the current page load. When sending // multiple values from the same page (e.g. for CLS), Google Analytics can // compute a total by grouping on this ID (note: requires `eventLabel` to // be a dimension in your report). event_label: id, // Use a non-interaction event to avoid affecting bounce rate. non_interaction: true, }); } getCLS(sendToGoogleAnalytics); getFID(sendToGoogleAnalytics); getLCP(sendToGoogleAnalytics); </script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.