Track clicks

Topic summary

A Shopify store owner has implemented a download button for items and wants to track how many times users click to download these files.

Current Situation:

  • Custom download button code has been added to the product page
  • No tracking mechanism is currently in place
  • An image shows the button implementation

Proposed Solution:

  • Use Google Analytics to track button clicks
  • A tutorial link was provided explaining how to implement click tracking with Google Analytics

User Preference:
The original poster expressed interest in a Shopify-native solution rather than relying on external analytics services.

Status: The discussion remains open with no final implementation decision made.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

I coded the following download button on my shopify . However i would love to be able to track how many times these items are downloaded. Is there a code to track the clicks?

https://mymagicalmoments.com.au/products/arrival-elf-letter-generic-multiple-elves

Hi @elfboss ,

You try to use Google Analytics.

You can refer this article to do it https://usefathom.com/learn/track-button-clicks-google-analytics

Thanks was hoping i could link it to shopify then outside source.