Stape Store requests

Hey, so I have a Stape Store Lookup variable which returns an object (2 StoreRead requests).

I have another variable, Object Property Extractor, which selects a key from the Stape Store Lookup variable (this also makes 2 StoreRead requests).

This doesn’t seem right. First of all, why 2 StoreReads and second, why does Object Property Extractor generates another requests?

Am I doing it wrong? Help is appreciated!

Thanks.

Any reference to an async variable (Promise) prompts it to be evaluated in GTM, so extra requests generated by Object Extractor are expected behaviour.

Now the initial read with Lookup - please elaborate, when you do you see this happening and how do you gauge it.

1 Like

As for the initial lookup, that’s probably my bad - I used a fixed Document ID while debugging, so the variable was executed on every event (page_view and user_engagement).

So, is there a way to work with the contents of the Lookup variable without generating multiple requests?

I have a lot of keys with User data which I want to add to a request.

@martinb

Not to bore you with all the hoops of transformations and Promises, just use this: Tag Manager Template Gallery

generate a ‘new’ event with looked-up data when needed, then all of it is available as normal event data on your new event and you can access it as usual, w/o additional requests.

1 Like

That could work. Thank you!