Add a snow effect with Google Tag Manager

Already have Google Tag Manager on your site? Add Christmas Lights without touching your site's code or waiting for a developer: one Custom HTML tag, publish, and it snows.

Free Β· one line of code Β· about 3 minutes
You'll need your free key first. It takes a minute and arrives by email.
Get my free code

Step by step

  1. Get your free widget code

    Register your website at worldofaiagents.com/christmas, verify your email with the 6-digit code, and copy the script tag from the email.

  2. Create a Custom HTML tag

    In GTM click Tags β†’ New β†’ Tag Configuration β†’ Custom HTML and paste your code.

  3. Set the trigger

    Choose All Pages. Name the tag "Christmas Lights" and save.

  4. Preview, then publish

    Use Preview to check the snow appears, then Submit β†’ Publish.

Your code looks like this

<script async src="https://worldofaiagents.com/christmas/w.js" data-key="XM-YOURKEY" data-style="wonderland" data-until="2027-01-07"></script>

Change data-style to wonderland, snowfall, lights, sleigh or icicles whenever you like. data-until switches it off after a date (7 January by default). Optional: data-cursor="off" removes the stardust cursor, data-drift="off" stops snow piling up, data-greeting="holidays" says "Happy holidays", and data-position="right" moves the on/off button.

Schedule it

The code already ends on 7 January with data-until. You can also start it on a date with a GTM trigger condition.

Troubleshooting

The tag fires but nothing shows
Check the browser console. "This key is registered for…" means the key belongs to another domain.
Content Security Policy blocks it
Allow https://worldofaiagents.com in script-src and connect-src.

Questions

Does it affect my analytics?

No. Christmas Lights sets no cookies, pushes no dataLayer events and doesn't change page views.

Let it snow on your website today

The snow on this page is the real widget. Try every theme on the main page.

Get my free Christmas lights πŸŽ„

Other guides