# Tag is not firing based on a DLV variable

**URL:** <https://community.piwik.pro/t/tag-is-not-firing-based-on-a-dlv-variable/1649>\
**Category:** Data collection and tags\
**Created:** [February 16, 2023, 4:05pm UTC](https://community.piwik.pro/t/tag-is-not-firing-based-on-a-dlv-variable/1649 "2023-02-16T16:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ValPiwik](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@ValPiwik](https://community.piwik.pro/u/ValPiwik)\
**Post date:** [February 16, 2023, 4:05pm UTC](https://community.piwik.pro/t/tag-is-not-firing-based-on-a-dlv-variable/1649/1 "2023-02-16T16:05:22Z")

</div>

Hello,

I want to trigger a tag based on a DLV variable.

- When a user log-in my website, it triggers a DL event called “login”.
- Inside this DL event, I have a variable called “zip”
- I want to trigger my tag when the zip variable equal to 85270

So,

1. I created my tag in Piwik TMS
2. As a trigger, I created the following rule: Page view trigger \> Loaded all elements (page load) \> Event condition → DLV | ZIP contains 85270

When I check, the login DL event is fired before the pageload event:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/3/362ee9ac857d0d6678943d35bd2241cb5cc4ddb3.png)

If I go in the pageload event, the DLV ZIP variable is correct:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/2/2b41a1514736845b8963965f64c81cf7cbcad232.png)

But my tag is not fired…

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/1/195fd57eac27358c63406ea8a1746139a4017710.png)

Many thanks,

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [February 16, 2023, 5:48pm UTC](https://community.piwik.pro/t/tag-is-not-firing-based-on-a-dlv-variable/1649/2 "2023-02-16T17:48:44Z")

</div>

Hi. The last screenshot suggests that you’re using wrong trigger. It should be Event equals `stg.pageLoad`.

---

<div class="post-metadata">

**Author:** ![ValPiwik](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@ValPiwik](https://community.piwik.pro/u/ValPiwik)\
**Post date:** [February 17, 2023, 6:41am UTC](https://community.piwik.pro/t/tag-is-not-firing-based-on-a-dlv-variable/1649/3 "2023-02-17T06:41:43Z")

</div>

> [@kuba](#):
>
> stg

Many thanks Kuba for your help 🙂
