React Integration - Missing push into Datalayer

Hi Piwik team,

we’ve been working with the React Integration that you’ve released and realized that the current setup fully ignores the Datalayer.

This is a huge issue cause either it forces us to more or less doublicate each and every event, pageview etc. to also enable it’s usage within the Tagmanager.

Or we should just implement Piwik in a SPA without using the React Integration and just building it our own.

The funny thing is, that you’ve already referenced the Datalayer Var in the piwikpro.window object - but don’t give us any possibility to let the push also be executed on the DL


We will look into the issue and get back with some more details soon.

1 Like

We have looked into this and based on your feedback, we will be providing a dedicated method in the React library for doing a dataLayer.push().

We are planning to add it in the next release, which is coming next week.

1 Like

Is this released yet? I’m also missing the datalayer possibilities in the react integration.

Hi @robin.astle, thank you for raising this again. Unfortunately we’ve hit a delay with releasing our newest version of the React library. It will be ready next week and as soon as we publish the latest version to NPM, I will let you know.

Sorry for not keeping you up-to-date.

1 Like

No problem, things happen :slight_smile: Thanks for the update!

@robin.astle, @phil_data_baron

Datalayer methods are now available in our React library with the latest version on NPM :slightly_smiling_face:

We will be publishing documentation on shortly.