How to install Visiflow on Google Tag Manager
To install Visiflow on Google Tag Manager, create your site in Visiflow, copy the one-line snippet and paste it in the head of every page. It takes about five minutes, and the free plan covers 100 visits a month.
Before you start
- Create a free Visiflow account and add your site. Visiflow gives you a snippet with your own site key.
- You need access to edit the code or the custom code settings of your Google Tag Manager site.
- Have your site address ready, for example
mysite.com.
Step by step on Google Tag Manager
- In Google Tag Manager, open your container and click Tags → New.
- Choose Custom HTML as the tag type and paste the Visiflow snippet.
- Set the trigger to All Pages.
- Click Save, then Submit and publish the container.
See Visiflow in action
Short demo videos on sample data (not a real customer). Each one shows a task from start to finish.
Build a funnel in 3 steps
A guided wizard: pick a starting point, add steps, check the data and finish.
- Pick a template
- Add and check each step
- Save and finish
Videos use fictional sample data.
The snippet
Use the snippet from the Install tab of your site. It looks like this, with your own key in place of YOUR_SITE_KEY:
<script>window.rastro=window.rastro||function(){(rastro.q=rastro.q||[]).push(arguments)};</script>
<script async src="https://upgmfqoichsowzqlrive.supabase.co/functions/v1/rastro-ingest/s.js?k=YOUR_SITE_KEY"></script>
How to check that it works
- Open your published site with
?rastro_debug=1at the end of the address. A small badge shows whether data is being sent. - In Visiflow, open the Overview tab. The first visit appears within a minute.
- Or ask Claude with the Visiflow connector: it can verify the install and wait for the first visit.
Or let an AI assistant do it
The Install tab also has a ready-made prompt for Claude Code, ChatGPT or Cursor. This is the idea:
Add this Visiflow tracking snippet inside the <head> of every page of my Google Tag Manager site, replacing YOUR_SITE_KEY with my site key. Do not change anything else. Then tell me how to verify it works (open the site with ?rastro_debug=1).
Tips for Google Tag Manager
- If you use consent rules, fire the tag only after consent to session recording.
- Use the preview mode of Tag Manager to confirm the tag fires.
- Check the site with
?rastro_debug=1after publishing.
If you do not see data
- Check the site key. It must be the one from your site's Install tab, not the placeholder.
- Open the published site, not the editor or a preview that does not run custom code.
- Clear your cache (site cache, plugin cache or CDN) and reload.
- Turn off your ad blocker for the test, or test in a private window.
- Check ignored IPs. If you added your own address in the settings, your visits are skipped on purpose.
- Use
?rastro_debug=1to see the badge. It tells you whether the script loaded and sent data.
Set the recording rules once
By default Visiflow pauses recording after 120 seconds without activity, pauses when the tab is hidden for 60 seconds and caps video at 30 minutes per session. You can change these in Settings, limit recording by device or by pages, and set how many days recordings are kept. Clicks, scroll and funnel data keep being counted even when the video is paused.
Privacy and performance
Visiflow masks form inputs by default and never records password fields. You can hide any element with class="rastro-mask". The script loads asynchronously, so it does not block the page. Tell visitors in your privacy notice that you use session recording and heatmaps (see the privacy checklist).
What to do next
- Open the Heatmaps tab after the first visits.
- Build your first funnel in three guided steps.
- Watch a few session replays of people who left.
Questions
How long does the install take?
About five minutes: copy the snippet, paste it in the head of the site and open the site once.
Do I need a developer?
Usually not. On most platforms you paste the snippet in a settings field or in a theme file.
Will it slow my site?
The script loads asynchronously. Measure the effect on your own pages with your usual speed tests.
Is it free?
Yes, up to 100 visits a month.