Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foresight
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libraries
foresight
Commits
8b719f45
Commit
8b719f45
authored
Apr 18, 2025
by
Chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update new method documentation
parent
b31c5b6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
README.md
README.md
+21
-3
No files found.
README.md
View file @
8b719f45
...
...
@@ -66,9 +66,18 @@ The above markup would send the following event data when clicked:
| Field | Value |
| --------------- | -------------- |
|
`eventCategory`
|
`home`
|
|
`eventAction`
|
`register cta`
|
|
`eventLabel`
|
`null`
|
|
`eventCategory`
|
`home`
|
|
`eventAction`
|
`register cta`
|
|
`eventLabel`
|
`null`
|
GA4 event tracking is also supported, example:
|
`data-track`
value |
`category`
|
`action`
|
`label`
|
|:--------------------------------------|:----------------|:---------------|:---------------------|
|
`"nav;click;new page"`
|
`nav`
|
`click`
|
`new page`
|
|
`"form;submit;contact us"`
|
`form`
|
`submit`
|
`contact us`
|
|
`"button;click;download brochure"`
|
`button`
|
`click`
|
`download brochure`
|
|
`"play video"`
|
*(none)*
|
`play video`
|
*(none)*
|
---
...
...
@@ -169,4 +178,12 @@ Parameters:
---
#### `sendPageView(pagePath: string)`
Manually send a page_view event to Google Analytics 4.
Parameters:
*
`pagePath: string`
(optional) — The path of the page to report. Defaults to the current location pathname.
---
Copyright © 2018 FOREFRONT International Sdn Bhd.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment