How to set up the Integration with Golden Planet

Follow the steps below to set up the integration with Golden planet

Part 1: Check Website URL in ProfitMetrics
Part 2: Create a new API Client 
Part 3: Insert ProfitMetrics script
Part 4: Create a Product Feed

Part 1: Check website URL in ProfitMetrics 

  1. Log in to https://my.profitmetrics.io/
  2. Go to "Websites"
  3. Ensure the URL matches the actual URL of your websites domain.
    Most likely it needs to be example.com instead of www.example.com

Part 2: Create a new API Client 

  1. Log in to your Golden Planet admin panel
  2. Navigate to Tools > API > Create new API Client
    Create a new API client and generate a client ID - Step 7
  3. Type "profitmetrics" in the title
    Create a new API client and generate a client ID - Step 10
  4. "Read, add and change any API entity" is checked by default. If you want to change this you need to ensure that "Read Customers and any connected data like Discount groups" and "Read Orders and any connected data like Order statuses" are checked.
  5. Click Generate Client
    Create a new API client and generate a client ID - Step 21
  6. Copy the "API Client ID" and "API Client Secret" and send them to support@profitmetrics.io

Part 3: Insert ProfitMetrics script

  1. Log in to your Golden Planet admin panel
  2. Navigate to Integration > Custom integration
    Adding a Custom Integration and Script in Cotonshoppen.dk Admin Dashboard - Step 3
  3. Click Add new Custom integration at the bottom of the page
    Adding a Custom Integration and Script in Cotonshoppen.dk Admin Dashboard - Step 4
  4. Type "ProfitMetrics Script" in the Title field.
  5. Under Pages, select All pages
    Adding a Custom Integration and Script in Cotonshoppen.dk Admin Dashboard - Step 7
  6. Copy and paste the following script into the Twig/HTML field. Make sure to update INSERT_PID with your Public ID found in Profitmetircs > Websites
    <!-- Start ProfitMetrics - Script-->
    <script>
    window.profitMetrics = {
    pid: 'INSERT_PID', // The ProfitMetrics website ID
    }
    </script>

    <script src="https://cdn1.profitmetrics.io/INSERT_PID/bundle.js"
    defer></script>
    <!-- End ProfitMetrics - Script-->
    Adding a Custom Integration and Script in Cotonshoppen.dk Admin Dashboard - Step 49

  7. Click Save

 

Part 4: Create a Product Feed

  1. In the main menu, navigate to Tools – Feeds, and press ”Add product feed”
    Screenshot 2024-04-17 at 15.10.59

  2. Fill in the title of the feed, we suggest ”profitmetrics”, set Output to ”xml”, delete the default contents of the ”Template” area, and paste the product feed template into it.
    <?xml version="1.0" encoding="UTF-8"?>

    <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0" xmlns:pm="https://my.profitmetrics.io/ns/1.0" pm-type="gs-1.0">

        <channel>

       

        </channel>

    </rss>

    Screenshot 2024-04-17 at 15.11.05

  3. At the bottom of the form, select the option ”include products with any attribute. Feed settings in each attribute are ignored”, and click Save.
    Screenshot 2024-04-17 at 15.11.44

  4. Rightclick on the ”Link” button and select ”Copy link address” to copy the url of the feed. You can now input this feed into your account on ProfitMetrics
    Screenshot 2024-04-17 at 15.11.49