Skip to content

trkkn/sgtm-ga-malformed-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Malformed Event Flag - sGTM Variable Template

This utility variable validates the format of the incoming event name and its parameter keys. It returns true if the event name contains any characters other than letters, numbers, and underscores (_), or if a parameter key contains any characters other than letters, numbers, underscores (_), and hyphens (-).

This flag is useful for detecting and diverting potentially malicious traffic, such as an injection attack, before it is processed by your server-side tags.

Alternatively, this can be used as a simple check for misconfigured event parameter keys or event names.

About

Server-GTM variable template that checks whether a GA4 event is malformed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages