# React Integration - Missing push into Datalayer

**URL:** <https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631>\
**Category:** Data collection and tags\
**Created:** [April 28, 2022, 11:58am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631 "2022-04-28T11:58:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil\_data\_baron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/phil_data_baron/32/314_2.png) [@phil\_data\_baron](https://community.piwik.pro/u/phil_data_baron)\
**Post date:** [April 28, 2022, 11:58am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/1 "2022-04-28T11:58:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Piotrek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotrek/32/160_2.png) [@Piotrek](https://community.piwik.pro/u/Piotrek)\
**Post date:** [April 28, 2022, 12:30pm UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/2 "2022-04-28T12:30:30Z")

</div>

Hello,

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

---

<div class="post-metadata">

**Author:** ![Piotrek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotrek/32/160_2.png) [@Piotrek](https://community.piwik.pro/u/Piotrek)\
**Post date:** [April 29, 2022, 8:34am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/3 "2022-04-29T08:34:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![robin.astle](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/robin.astle/32/441_2.png) [@robin.astle](https://community.piwik.pro/u/robin.astle)\
**Post date:** [June 2, 2022, 7:49pm UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/4 "2022-06-02T19:49:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Piotrek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotrek/32/160_2.png) [@Piotrek](https://community.piwik.pro/u/Piotrek)\
**Post date:** [June 3, 2022, 9:51am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/5 "2022-06-03T09:51:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![robin.astle](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/robin.astle/32/441_2.png) [@robin.astle](https://community.piwik.pro/u/robin.astle)\
**Post date:** [June 3, 2022, 11:04am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/6 "2022-06-03T11:04:30Z")

</div>

No problem, things happen 🙂 Thanks for the update!

---

<div class="post-metadata">

**Author:** ![Piotrek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotrek/32/160_2.png) [@Piotrek](https://community.piwik.pro/u/Piotrek)\
**Post date:** [June 9, 2022, 8:04am UTC](https://community.piwik.pro/t/react-integration-missing-push-into-datalayer/631/7 "2022-06-09T08:04:50Z")

</div>

@robin.astle, @phil_data_baron

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

We will be publishing documentation on [developers.piwik.pro](https://developers.piwik.pro) shortly.
