Prompt Examples

Ready-to-use prompts for common tracking scenarios

Copy and customize these prompts for common tracking scenarios. Replace the [PLACEHOLDER] values with your specifics.

CTA Button Tracking

Create a click tracking rule for [BUTTON SELECTOR].
Set eVar[X] to "[CTA NAME]".
Fire event[X].
Send a link tracking beacon with link name "[CTA NAME]".
Clear variables after the beacon.

Form Submission Tracking

Create a rule that fires on form submit for [FORM SELECTOR].
Set eVar[X] to the form name "[FORM NAME]".
Set eVar[X] to the page URL.
Fire event[X] for form submission.
Send an Analytics beacon.
Clear variables.

Page Load Tracking

Create a page load rule that fires on DOM ready.
Only fire when the path contains [PATH].
Set eVar[X] to page name, eVar[X] to page type.
Fire event[X].
Send a page view beacon.

Video Tracking

Error Tracking

Scroll Depth Tracking

E-commerce: Add to Cart

E-commerce: Purchase Complete

Internal Search Tracking


Save Your Own

Use these examples as starting points, then save your own templates for prompts you use repeatedly. See Prompt Templates to learn how.

Last updated