Skip to content

Instantly share code, notes, and snippets.


Ahmed boussouira

  • Morocco
View GitHub Profile
boussouira / track.html
Last active May 2, 2021 11:12
Fire Facebook Pixel with for Free+Shipping Shopify Products
View track.html
{% if first_time_accessed %}
var patchedTrack = function(type, data) {
data.revenue = "{{order.total_price | money_without_currency}}";
window.ShopifyAnalytics.lib.track2(type, data);
function patchTrack() {
if (window.ShopifyAnalytics &&
window.ShopifyAnalytics.lib &&
boussouira /
Created January 25, 2016 09:54 — forked from teffalump/
OpenWRT adblock implementation

Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:


In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.

boussouira /
Last active August 29, 2015 14:27 — forked from dwayne/
My notes from the book "Authority by Nathan Barry".