Once upon a time, I needed to create Facebook dynamic product ads for an eCommerce website. Ok, no problem. But there WAS a problem with such ads: deep linking to product pages!
I assume you faced the same issue as you’ve found this post. If not, you have a great opportunity to know the solution even before this problem occurs to you. So read on and I’ll tell you more about a good way of creating dynamic product ads for eCommerce websites.
Table of Contents
What is Facebook Dynamic Remarketing
First things first. Before going further, I just want to make sure you understand what dynamic remarketing ads are.
I bet you also saw such ads: after researching some product and/or adding it to your shopping cart, you visited other websites and – oh my god – saw ads with this particular item. That’s how dynamic remarketing works and Facebook dynamic ads are great for that.
Dynamic remarketing is a powerful tool which can help you engage potential customers and turn prospects into sales. People who have already expressed some interest in your products are 70% more likely to convert.
Before Creating Dynamic Ads…
You should:
- Have a Facebook pixel installed on your website
- Track all necessary users’ actions (views, adds to cart, purchases)
- Create a Facebook product catalog (here is a FB guide on that)
Ready? Let’s get down to the main reason for writing this post.
The Problem with Deep Linking to Products URLs
Ok, you uploaded a product feed with all the needed attributes, like Product Name, Product Description, Price, etc. And as you want to direct clients to appropriate pages (if not, I would be upset), you’ve also added a ‘Link’ attribute to use it for deep linking.
This attribute is recognized by Facebook and can be seen on the product information grid:
At least, that’s what I did. But I have never been so disappointed…
The problem is that Facebook has a restricted list of parameters (at least at time of writing this) that can be used in dynamic ads, and ‘Link’ (or ‘Website Link’ or anything like that) is not one of them:
So you end up trying to choose those parameters that would mimic your URLs. But in most cases that’s not possible!
Usually, a product URL on an eCommerce website looks like this:
myshop.com/category/my-super-product.html
Or just
myshop.com/my-super-duper-product.html
So there is no way to use any of the attributes FB suggests for deep linking. Or you will just land potential customers on a 404 page. Trust me, you don’t want to do that.
What Facebook Says About It
Nothing that could really help you.
I asked a question about deep linking here, and a general answer was to adapt the website URLs to match the template tags:
There is also a relatively new article in the Facebook Help section about setting up deep links in dynamic ads, and most of all I love this part:
This example is great if you want to send users to search pages that are created dynamically and can be based on the available attributes. But that’s not the case if your URLs are static and you don’t want to change them to match FB attributes (why should you do that after all?!).
The Solution to FB Deep Linking Mystery
It’s simple when you think about it: if you don’t want to adapt your website URLs to the template tags, adapt tags to match your URLs!
FB gives you custom labels, so place you URLs there and use them for deep linking.
So this is a good way to add deep links to your product pages:
- Add part of a URL after the domain name (e.g. my-super-duper-product.html) in the <custom_label_4> attribute, so it would look like this:
<custom_label_4>my-super-duper-product.html</custom_label_4>
You are free to choose any available custom label from 0 to 4. And please don’t ask me why I chose label 4, I won’t be able to answer.
- Upload an updated feed to Facebook and made sure my changes were seen in the product catalog.
- Used the new attribute to create deep links for my product URLs:
Viola! It worked. A customer will land on the right page.
Your Turn
Now you can try this method and easily create deep linking for Facebook dynamic product ads. But it’s not enough just to create such ads, it’s also important to optimize them (check out the link, I love this resource, super helpful for Facebook advertisers).
And don’t forget to let me know what you think in the comments below!
[Sassy_Social_Share]

After 10+ years in SEO, I founded MarketingSyrup Academy where I teach smart SEOs. Over 500+ people have gone through my courses, including SEO Challenge and Tech SEO Pro.
I’m also a creator of the SEO Pro extension with 30K active users worldwide.