Skip to main content

1. Creating and Authenticating the Token in Wake

Wake API authentication is done through a Token. This token validates the merchant’s identity and grants permission to access store information.
  1. Go to Settings > Integrations > Tokens.
  2. Click on Add Token.
  3. Define the Application Name to make identification easier.
  4. Configure the permissions that the token will have access to, ensuring it can only access authorized information.
  5. In Permissions, select the minimum recommended access for Nemu integration:
  • In the GestorScript category, select the POST method for /gestorscripts/scripts
  • In the Webhook category, select the POST method for /webhook/inscricao
  • In the Orders category, select the GET method for /pedidos and /pedidos/{pedidoId}
  1. Enter the technical responsible email.
  2. Click on Save.

2. Adding Content Security Policies (CSP) in Wake

For Nemu scripts and network calls to work correctly on your Wake store, add the following trusted origins to the Security Policies (CSP) in the Wake panel.
  1. In the Wake panel, go to Settings → Security → Security Policies (or search for Security Policies).
  2. Add these URLs to the allowed domains list:
    • https://trackings.nemu.com.br
    • https://openfpcdn.io
    • https://ipinfo.io
    • https://api.ipify.org
    • https://api.bigdatacloud.net

3. Connecting Wake to Nemu

  1. In the Nemu Dashboard, go to the Platforms menu.
  2. Click on Wake and then on the Connect button.
  3. Fill in the requested fields:
    • Store URL (your Wake store address)
    • Token (copied earlier in the Wake panel)
  4. Click on Save.

4. Verifying the Nemu Pixel in Wake

After completing the previous step, Nemu automatically creates and publishes the Pixel in your store through Wake’s Script Manager. You do not need to copy or paste any script manually. To confirm everything went well:
  1. In the Wake admin panel, go to Admin Settings → Script Manager.
  2. In the filter, select All and click Apply filter.
  3. Search for Pixel da Nemu in the search field and click Search.
  4. In the row for the Pixel da Nemu - (code) script (or Pixel da Nemu, if you did the manual installation from section 5), check that:
    • the Active column is enabled;
    • the Publication Date column is filled in;
    • the End Date is not a past date.
    Then click the script name to open the Script Versions screen. In the right-hand panel, the most recent version should appear as Version N (Published).
A script that is only saved does not appear in the store. If the most recent version is not marked as (Published), open the script, click Save and then Publish.
The script created by Nemu uses this configuration. Do not change these fields:
Wake’s cache time is at least 5 minutes. Wait for this period before validating whether the Pixel is recording events.

5. Installing the Pixel manually (if the script does not appear)

If the Pixel da Nemu script does not appear in the list, the Token created in step 1 is probably missing the POST permission for /gestorscripts/scripts in the GestorScript category. Review the Token permissions in Wake and add the script manually:
  1. In Wake, go to Admin Settings → Script Manager and click Add Script.
  2. Fill in the script details as shown in the image below:
  3. In Script Content, paste the Nemu Pixel script. The script content is a field for inserting scripts. Note that, to insert a script, it must start with the <script> tag and end with </script>; this is required. The Nemu Pixel script can be copied in step 4 of the Configuring the Pixel documentation.
  4. To publish the content on the site, click Save and then Publish.
  5. Repeat the verification in section 4. In step 4, check the Pixel da Nemu row, which is the name used in this manual installation.
Keep only one Nemu script active in the store. Two active scripts duplicate the Pixel events.
For more details about the Script Manager, see the Wake documentation.