Wordpress

Follow these steps to add the Cryptiques analytics script to your WordPress website, regardless of your technical expertise.

Walkthrough:

  1. Log in to your WordPress Admin Dashboard.

  2. Navigate to Appearance -> Theme File Editor (or Theme Editor in older versions). Note: Be cautious when editing theme files directly. Alternatively, use a plugin designed for inserting header/footer scripts (like "Insert Headers and Footers").

  3. If editing theme files:

    • Select the theme file where you want to add the script. The header.php file is usually the best choice, placing the script within the <head> section.

    • Click the file name (e.g., header.php) to open it in the editor.

  4. Find the appropriate location within the file (ideally just before the closing </head> tag).

  5. Paste the Cryptique's script snippet you copied from the platform into the editor.

  6. Click Update File to save your changes.

Using a Plugin (Recommended for non-developers):

  1. Install and activate a plugin like "Insert Headers and Footers".

  2. Go to Settings -> Insert Headers and Footers.

  3. Paste the Cryptique's script snippet into the "Scripts in Header" box.

  4. Click Save.


Code Snippet (for reference):

<script>
      var script = document.createElement('script');
      script.src = 'http://cdn.cryptique.io/scripts/analytics/1.0.1/cryptique.js';  
      script.setAttribute('site-id', 'xxxxxxxxxxxxxx');
      document.head.appendChild(script);
</script>

(Remember to replace YOUR_SITE_ID with your actual Site ID)


Checking Script Status:

  1. Log In & Navigate: After deploying your website with the integrated Cryptiques script, log back into your Cryptiques account at app.cryptique.io/login (replace with actual URL).

  2. Access Off-Chain Analytics: Click on "Off-Chain Analytics" in the left-hand navigation bar to go to the dashboard.

  3. Select Your Website: Find the website selection dropdown menu at the top of the dashboard and choose the specific website you just integrated.

  4. Verify Installation: A pop-up or status indicator related to your selected website should appear, containing a "Verify Installation" button. Click this button.

    • Success: If the integration was successful, the platform will confirm the connection, and you should start seeing website data flowing into your Cryptiques dashboards shortly.

    • Error: If there's an issue with the integration, an error message will be displayed, prompting you to double-check the script placement and configuration. If problems persist, contact Cryptiques support.

Last updated