Issue with Pixel App Integration

Good afternoon, everyone.

I’m trying to develop a Pixel App to monitor some events in a VTEX store.

I followed this documentation tutorial step by step.

  1. I logged in;
  2. I created the workspace
  3. I cloned the repository git clone GitHub - vtex-apps/pixel-app-template · GitHub
  4. I only modified the name and vendor in manifest.js
  5. Inside the pixel folder I renamed the file to body.html
  6. In body.html and in index.tsx I just added some console.log() calls to see some output in the store
  7. I ran vtex release major and then vtex publish.
  8. In the admin panel of the workspace I was in, I was able to install the app I created
  9. I ran vtex link and went to the site’s home page at https://name--vendor.myvtex.com/ (example)

But even after doing all of that, as simple as the test was, when I inspect the site, the console logs I scattered throughout the provided example don’t show up anywhere.

Does anyone know what I’m missing? Whether I followed a wrong step or did something out of order?

Thanks in advance.

List item

Why did you rename the file to body? Couldn’t you just leave the file name as head.html with the content:

<script>console.log('test')</script>```

Good morning,

I already tried naming it head.html and header.html, but neither of them worked.

The documentation at 4. Writing the head and body scripts says I can change the value, so I named it body.html, since that way there would be no variation.