Skip to content

Analytics, Cart + Theming Adjustment

Choose a tag to compare

@iamkevingreen iamkevingreen released this 28 Nov 17:10
· 25 commits to master since this release

Analytics Pattern
I have implemented a very basic pattern via Ian, it loads the analytics with helmet with out of the box support for GTM, GA and Facebook pixel tracking. Should be relatively easy to implement additional pixels. Noticing potential multi-tagging paired with the transition group so be aware of that in your implementation. May need to move the pixel tracking to a single useEffect call at the template level. (currently in the gatsby-browser.js)

The theme has been modified to use Ians Magic Tricks Sass lib. Anyone using the PostCSS can absolutely continue to do so, keeping in mind this is really all just a theme preference. Granted there are some utility classes that I use which hopefully is easy enough to swap if you are using another framework. This is because I am doing a number of projects with Ian and we're both using this framework + doing similar styling to increase our workflows. Hopefully y'all like Magic Tricks ;).

I also swapped some basic styling and hopefully made it all a little nicer to look out by default. I have been updating some of the actual documentation to reflect some of the recent updates, especially revolving around the changes to the Shopify-Sync functionality.

Big Cart Update--
I have modified the cart to be both more functional and have some low-fi styling. This is because carts, especially slide out carts are relatively tedious and also relatively difficult to implement. Hoping this cart is as close as you need to get you to a finalized experience without too much headache. It works great on mobile and supports the max-height issues etc that come with iPhones. It also comes with a free shipping progress bar + messaging. If you're not offering this you can easily comment it out!