Reactjs

Avatar

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
jakej40603950
Level 3

15-06-2020

Is there any documentation on integration of Adobe Analytics (through javascript not through Launch / DTM) with reactjs SPA (not react-native just plain reactjs)? Or any npm module which helps with the same?

 

For e.g. here's a module which helps with integration of Google Analytics with react:

https://github.com/react-ga/react-ga

Anything similar for Adobe Analytics?

 

I tried including appmeasurement.js and calling s.t() from within react code but the code wouldn't compile on doing that.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Level 1
analystadmin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 1
analystadmin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Establish
View profile
analystadmin
Level 1

20-06-2020

Hi @jakej40603950,

 

I'm familiar with some GTA/GA React packages, but have not seen similar offerings for Adobe Analytics.

 

To start, I recommend a solid understanding of the AppMeasurement library. Check out the official implementation guide here. In particular, look at the initialization (steps 1-3) which you can do in your main App component, then you can call s.t() in componentDidMount or via a hook of router components.

 

As for the code not compiling, what error is it throwing? Are you putting the AppMeasurement.js in the public folder?

 

-Miguel