Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/panachainy/google-analytics-101

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/panachainy/google-analytics-101

  • v0.0.0-20220814114444-92ce7798bd46
  • Source
  • Go
  • Socket score

Version published
Created
Source

google-analytics-101

Netlify Status

REF

https://machiel.me/post/using-google-analytics-api-with-golang/

Make credential for google

https://cloud.google.com/docs/authentication/production#cloud-console

API Credential

https://console.cloud.google.com/apis/credentials?authuser=2&project=sale-page-325603

Golang UA << Obsolete

Step UA

  1. Create google account
  2. Create Organize of google analytic
  3. Create googla analytics
  4. Enable Universal Analytics
  5. Create Data Streams
    1. Other one

TODO

JS (GA4)

Run report support only start GA4 to before current date

export GOOGLE_APPLICATION_CREDENTIALS="./key.json"
export PROPERTY_ID="xxxxxxxxx"

Create service account

  • select project
  • grant permission Firebase Analytics Viewer (firebaseanalytics.resources.googleAnalyticsReadAndAnalyze)
  • created
  • select new service account then create private key in json format

apply permission for ga4 project

  • Go to GA4 project
  • click admin section (left bottom of page)
  • Property Access Management
  • add service account that you already create.

Enable GA4 API

https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com?project=habit-807a6

GTM

  1. Add Trigger Click - All Elements
  2. select Some Clicks
  3. add condition at Fire this trigger with Click ID + contains + your button ID
  4. Add tag on trigger
    1. add parameter with page_path + {{Page Path}}
  5. Add Variable Click ID

Don't forget publish GTM

FAQs

Package last updated on 14 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc