Documentation
Feedback
Guides

LogRocket

How to install

Open a terminal and type:


_10
vtex install vtex.logrocket@1.x

Open your admin in the Apps section:

https://YOURSTORENAME.myvtex.com/admin/apps/vtex.logrocket@1.0.0/setup

Fill in your LogRocket's Account ID and click save.

Setup in Cart and Checkout page

This step will not be needed in a couple of months!

Open your admin in the Checkout section in the checkout6-custom.js:

https://ACCOUNT.myvtexdev.com/admin/portal/#/sites/default/code/files/checkout6-custom.js

Add the following snippet in the file:


_10
// LogRocket
_10
(function() {
_10
var accountId = 'YOURACCOUNTID';
_10
var b=document.createElement("script");b.onload=function(){window.LogRocket && window.LogRocket.init(accountId);};b.type="text/javascript";b.crossOrigin="anonymous";b.src="https://cdn.lr-ingest.io/LogRocket.min.js";a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a);
_10
})();

Click Save.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page