VTEX LogRocket first-party app

How to install

Open a terminal and type:

vtex install [email protected]

Open your admin in the Apps section:

https://YOURSTORENAME.myvtex.com/admin/apps/[email protected]/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:


Add the following snippet in the file:

// LogRocket
(function() {
  var accountId = 'YOURACCOUNTID';
  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);

Click Save.

Did this page help you?