growsurf.open()
in your browser's Developer Console.grsfReady
Event Listenergrowsurf
functions on page load, you must wait until the library has completely loaded.grsfReady
event notifying any event listeners that it is ready for use. Only then will any GrowSurf JavaScript Web API functions work.grsfReady
grsfReady
event may have already fired. This depends on how long it takes your scripts to load and can happen for various other reasons.
If your grsfReady
callback isn't being invoked on thegrsfReady
event we recommend you check to see if the growsurf
script is already available before adding the event listener callback with a conditional like this...
growsurf
functions not on page load, we recommend you wrap them in a conditional like this...grsf_email
URL parameter to automatically force the participant view when someone lands on the webpage.https://grow.surf/[email protected]
grsf_email
is also useful for adding new participants on the fly (i.e, when a person shows high-intent to share, they land on your referral portal and only then are they added to your GrowSurf campaign).grsf_first_name
and grsf_last_name
will also set the participant's first name and last name, respectively, if the participant was newly added.grsf_email
https://grow.surf/abc123/[email protected]
grsf_first_name
grsf_email
is set) Set this value if you want to add a new participant with a first namehttps://grow.surf/[email protected]
&grsf_first_name=Bob
grsf_last_name
grsf_email
is set) Set this value if you want to add a new participant with a last namehttps://grow.surf/[email protected]
&grsf_first_name=Bob
&grsf_last_name=Loblaw
grsf
https://yoursite.com?grsf=z7o8au