Generate Participant Auto Authentication Code
growsurf_grsf_config_snippetGenerates the HTML head snippet for GrowSurf participant auto-authentication using window.grsfConfig, with optional email and auth hash for live configuration.
Instructions
Generate the HTML code for GrowSurf Participant Auto Authentication using window.grsfConfig. The generated code belongs in <head>, before the GrowSurf Universal Code. With no arguments it returns the commented template with placeholder values. Set enableParticipantAutoAuth: true only when you also pass the participant's email and hash; get the hash from growsurf_participant_auth_hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | The participant's auth hash from `growsurf_participant_auth_hash`. Required when `enableParticipantAutoAuth` is true. | |
| No | The participant's email. Required when `enableParticipantAutoAuth` is true. | ||
| campaignId | No | ||
| affiliateJoin | No | ||
| useCampaignIdPlaceholder | No | ||
| enableParticipantAutoAuth | No | Output a live `window.grsfConfig` block for one participant. Requires `email` and `hash`. | |
| includeAutoAuthCommentHeader | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | No | The generated guidance as a markdown document. |