Add Diwali lights with Google Tag Manager

Already have Google Tag Manager on your website? Then you can add Diwali Lights without touching your site's code or asking a developer: create one Custom HTML tag, publish, and your site lights up.

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/diwali, verify your email and copy the script tag.

  2. Create a Custom HTML tag

    In your GTM container click Tags → New, choose Tag Configuration → Custom HTML, and paste your Diwali Lights code.

  3. Set the trigger

    Under Triggering choose All Pages (or Initialization – All Pages). Name the tag "Diwali Lights" and save.

  4. Preview

    Click Preview, enter your website address, and check that the tag fires and the lights appear.

  5. Publish

    Click Submit → Publish. The lights now show for every visitor.

Your code looks like this

<script async src="https://worldofaiagents.com/diwali/w.js" data-key="DL-YOURKEY" data-style="grand"></script>

Change data-style to diyas, fireworks, toran, lanterns or grand whenever you like. Optional: data-sparkler="off" removes the cursor sparkler, data-until="2026-11-20" switches the lights off after a date, and data-position="right" moves the small on/off button.

Schedule it

Prefer GTM to handle the dates? Add data-until="2026-11-20" to the code, or use a trigger condition on a date variable. Either way the lights switch off on time with no code change on your site.

Troubleshooting

The tag fires but nothing shows
Open the browser console. A "this key is registered for …" message means the key was registered for a different domain. Register the domain that GTM runs on.
Content Security Policy blocks it
If your site sends a CSP header, allow https://worldofaiagents.com in script-src and connect-src.

Questions

Can I add Diwali lights without editing my website code?

Yes. If your site already has Google Tag Manager, add Diwali Lights as a Custom HTML tag and publish the container. No site code changes are needed.

Does it affect my analytics?

No. Diwali Lights doesn't set cookies, push dataLayer events or change page views. It only draws lights.

Light up your Google Tag Manager site today

The lights on this page are the real widget. Try every style on the main page.

Get my free Diwali lights 🪔

Other guides