Hi all, I have the following question. My site is ...
# ask-questions
t
Hi all, I have the following question. My site is on Shopify and I will use Shopify integration via Growthbook. Then I have a question regarding the setup because we use Amplitude as our analytics platform, and in the setup I choose other and it display an <script>. But then when I check the help center, it takes me to this link - https://docs.growthbook.io/lib/script-tag - where it shows me a different code. 1. Which code I need to install? The one of the help center or the one that is provided in the Shopify integration 2. The API Key to introduce is the one I need to create in Amplitude or Snowflake? 3. If I need to paste the code of the help center, where I add it in the Shopify code? Thanks,
@fresh-football-47124 if you can help me here and I will not bother for 2 weeks.
f
heh
Use the one from your SDK page - it should be very similar, no?
The API key for the visual editor?
And I'm not sure what you mean by help center
t
in growthbook help center you have this link --> https://docs.growthbook.io/integrations/shopify?ref=blog.growthbook.io. If I click on the violet rectangle it takes me to this link https://docs.growthbook.io/lib/script-tag Which offers this code:
Copy code
<script async
  data-client-key="YOUR_CLIENT_KEY_HERE"
  src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js>"
></script>
But I don’t know if I have to install that or this one that is on the sdk integration:
Copy code
<script>
window.growthbook_config = window.growthbook_config || {};
window.growthbook_config.trackingCallback = (experiment, result) => {
  customEventTracker("Viewed Experiment", {
    experiment_id: experiment.key,
    variation_id: result.key
  })
};
</script>