Giter VIP home page Giter VIP logo

Comments (2)

aawnu avatar aawnu commented on July 21, 2024

With a little help from a cheatsheet website the parameters have somewhat been "decoded" now.

/**
 * Using V1 parameters to imulate a page view through server side \
 * Be aware that this requires custom client_id and may result in loss of demographic information
 * @link https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
 * @link https://www.thyngster.com/ga4-measurement-protocol-cheatsheet/
 * @param string    v       Protocol Version eg "2"
 * @param string    tid     Tracking ID eg "G-xxx"
 * @param bool      aip     Anonymize IP eg "true"
 * @param string    gtm     GTM Hash Info
 * @param string    _p      Random load hash // Math.floor(Math.random() * (2147483647 - 0 + 1) + 0)
 * @param string    _z
 * @param string    cid     Client ID eg Cookie._ga or Cookie._gid or Session ID
 * @param string    uid     User ID eg "customer_1"
 * @param string    ul      User Language eg "en-us"
 * @param string    sr      Screen resolution eg "1920x1080"
 * @param string    sid     Session ID 
 * @param string    sct     Session Count // Incresed by 1 per session registered (expired)
 * @param string    seg     Session Engagement eg "1"
 * @param string    dl      Document Location eg http://foo.com/home?a=b as http%3A%2F%2Ffoo.com%2Fhome%3Fa%3Db
 * @param string    dr      Document Referer eg http://example.com as http%3A%2F%2Fexample.com
 * @param string    dt      Document Title eg <title>THIS</title>
 * @param int       _s      Hit Counter eg "1"
 */

from php-ga4.

aawnu avatar aawnu commented on July 21, 2024

I'm closing this as Won't Fix due to tags that are generated with GTM/GTAG that can not be properly replicated in PHP to my knowledge as is right now.

It might come back up at a later time.

from php-ga4.

Related Issues (20)

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.