Last active
December 22, 2022 06:57
-
-
Save mhf-ir/fc2618e312a82dda6b0aa085bcbedebb to your computer and use it in GitHub Desktop.
Send sample event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you must add analytics script into your project first | |
// put this script any where you like into your js of project, in callback, on load, on click or etc you want | |
aai.event({ | |
// requirement fields | |
c: "news", // must be regex: /^[a-z0-9_]{1,31}$/ ... All lowercase include number and `_` min 1 character until 31 character | |
a: "viewed", // must be regex: /^[a-z0-9_]{1,31}$/ ... All lowercase include number and `_` min 1 character until 31 character | |
// optional fiedlds | |
l: "Any thing yo like", // any string you like | |
id: "100", // like id of news or etc... must be regex /^[a-zA-Z0-9-_\/]{1,63}$/ | |
v: 10, // integer number(float not accepted) must be greater than 0 for example price of product 10000 | |
}); | |
// sample category and action names: | |
// - price | |
// - push_notification | |
// - site_closed | |
// - click1_mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment