I've been working on creating an RSS to email campaign with Mailchimp for my Shopify blog (sistergolden.com/blogs/blog). In Mailchimp's campaign builder, I have the option to use the merge tag *|RSSITEM:IMAGE|*, which pulls an image from the <media:content> tag on the Shopify blog. However, when I use this merge tag in my email campaign, no image shows up in the email. Could someone help me to figure out either (1) how to add the <media:content> tag to my blog images or (2) find another way to link my blog images into a Mailchimp email? Thanks so much in advance for your help!!
As a hack, I created a Rails app that uses the Article API to append https: to any img urls that don't specify the http protocol. It could use some extra work but it seems to be doing the trick. Here's my Ruby code:
shopifyArticles = ShopifyAPI.throttle { ShopifyAPI::Article.find(:all) }
shopifyArticles.each do |shopifyArticle|
if shopifyArticle.body_html.include? '"//cdn.shopify.com'
shopifyArticle.body_html.gsub('"//cdn.shopify.com', '"https://cdn.shopify.com';)
ShopifyAPI.throttle { shopifyArticle.save }
end
end
I'm working on converting this to an app, let me know if it would come in handy!
Hi chris@heyjones.com - did you end up creating this as an app? We are having this problem as well in sending a Shopify blog via Mailchimp RSS campaign
The app is awaiting beta approval, feel free to install it and let me know what you think!
User | Count |
---|---|
49 | |
29 | |
25 | |
20 | |
20 |