3
3 Comments

How do you go about creating tools which modify your user's website?

Do you give the users a code snippet that they need to copy to their website's source? What other ways are there? In case of the code snippet route, how do you go about implementing it in an efficient way and what are some resources to learn about it as I haven't seen any resources for this approach before.

on December 9, 2019
  1. 1

    Are you referring to an embeddable widget or just JavaScript like Google Analytics?

    I created a basic embeddable widget awhile back and it really isn't too complicated. It's just a basic React app compiled to a single file. You then give your user code that loads that file and initializes it. As well as a div to attach the React app to.
    You can check out the source and embed code here:

    1. 1

      Yeah I think giving a small code snippet is the only viable way, unless it's a Shopify app or a plugin. Thanks for the resources.

      1. 1

        Glad to help!

        With this method, your embed is completely isolated from your user's site too. So there isn't risk is messing up their CSS or anything like that.

        What kind of embed are you building?