Skip to content

Instantly share code, notes, and snippets.

@zagarskas
zagarskas / gist:4048f84429c34a0aa00c85bd5078f010
Created September 16, 2022 21:08
Shopify JSON hotspots
{
"blocks": [
{
"settings": {
"product": "some-thing",
"product_id": 1234567890,
"x_axis_id": 10,
"y_axis_id": 65
}
}, {
@zagarskas
zagarskas / gist:4549bce5fa14ad2c95bec6eef71b2f55
Last active September 16, 2022 21:04
Shopify checkout page integration - Google Ads, GA4, UA, Google Merchant center survey, prevent duplication, send enhanced conversion data
<!--
replace all of the following:
XXX_GADS_ID_XXX - google ads ID [AW-1234567890]
XXX_CONVERSION_XXX - Google Ads conversion [asdfgqwert123456]
XXX_GA_ID_XXX - Google anayltics ID [G-1234567890]
XXX_MERCH_ID_XXX - Google merchant ID [1234567890]
Covers both Universal anayltics and GA4 - "in theory" (for now)
belongs stuffed into the checkout settings in shopify: https://YOURSITE.myshopify.com/admin/settings/checkout
-->
@zagarskas
zagarskas / gist:51c9e098c63cc7b308c8701d3c7b0328
Created September 16, 2022 20:52
Shopify - Cleveland DMA Zipcodes - JS ARRAY list with quotes and commas
zipCodes: ['44805', '44287', '44842', '44837', '44864', '44840', '44880', '44866', '44859', '44638', '44838', '44848', '44874', '44004', '44030', '44041', '44047', '44076', '44003', '44085', '44084', '44048', '44082', '44010', '44099', '44032', '44093', '44068', '44088', '44005', '44657', '44615', '44644', '44621', '44656', '43945', '44688', '44643', '43988', '44675', '44625', '43903', '44695', '44427', '44620', '44651', '44631', '44607', '44639', '44130', '44107', '44102', '44111', '44109', '44118', '44124', '44134', '44105', '44120', '44122', '44121', '44145', '44070', '44133', '44128', '44129', '44125', '44135', '44146', '44136', '44139', '44106', '44143', '44138', '44137', '44112', '44144', '44108', '44116', '44104', '44131', '44147', '44017', '44149', '44110', '44142', '44126', '44113', '44022', '44123', '44140', '44103', '44132', '44141', '44119', '44114', '44117', '44115', '44127', '44040', '44101', '44178', '44185', '44181', '44189', '44188', '44191', '44190', '44193', '44192', '44195', '44194', '441
@zagarskas
zagarskas / gist:4431b4295e68b8d2a0719850c31e56e8
Last active September 16, 2022 21:06
Shopify - Cleveland DMA Zipcodes - list with commas
44805,44287,44842,44837,44864,44840,44880,44866,44859,44638,44838,44848,44874,44004,44030,44041,44047,44076,44003,44085,44084,44048,44082,44010,44099,44032,44093,44068,44088,44005,44657,44615,44644,44621,44656,43945,44688,44643,43988,44675,44625,43903,44695,44427,44620,44651,44631,44607,44639,44130,44107,44102,44111,44109,44118,44124,44134,44105,44120,44122,44121,44145,44070,44133,44128,44129,44125,44135,44146,44136,44139,44106,44143,44138,44137,44112,44144,44108,44116,44104,44131,44147,44017,44149,44110,44142,44126,44113,44022,44123,44140,44103,44132,44141,44119,44114,44117,44115,44127,44040,44101,44178,44185,44181,44189,44188,44191,44190,44193,44192,44195,44194,44198,44197,44199,44870,44089,44811,44839,44889,44824,44846,44847,44814,43464,44826,43438,44816,44871,44024,44023,44022,44062,44026,44231,44021,44072,44065,44234,44491,44086,44046,44099,44064,44073,44080,44033,44654,44681,44627,44624,44676,44842,43804,44637,44633,44628,44611,44638,43006,44689,44610,44617,44660,44661,44687,44690,44857,44811,44890,4488
@zagarskas
zagarskas / gist:3b14805f60c8985ad1f4850eddea02d1
Last active September 16, 2022 21:09
WordPress - Contact Form 7 State Dropdown - Full state names
[select* your-state "Alabama" "Alaska" "Arizona" "Arkansas" "California" "Colorado" "Connecticut" "Delaware" "Washington DC" "Florida" "Georgia" "Hawaii" "Idaho" "Illinois" "Indiana" "Iowa" "Kansas" "Kentucky" "Louisiana" "Maine" "Maryland" "Massachusetts" "Michigan" "Minnesota" "Mississippi" "Missouri" "Montana" "Nebraska" "Nevada" "New Hampshire" "New Jersey" "New Mexico" "New York" "North Carolina" "North Dakota" "Ohio" "Oklahoma" "Oregon" "Pennslyvania" "Rhode Island" "South Carolina" "South Dakota" "Tennessee" "Texas" "Utah" "Vermont" "Virginia" "Washington" "West Virginia" "Wisconsin" "Wyoming"]
@zagarskas
zagarskas / gist:7df3210d748aceae37343991aa656eea
Created September 16, 2022 20:45
WordPress - Contact Form 7 State Dropdown - State Codes only
[select* your-state "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "DC" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI" "WY"]