Hi!
I could use some assistance with passing an ID (or other attribute) value into a Data Element. Specifically, we’ve set up Recommendations using Target, and I’m trying to capture the BrandSKU for the recommendations that are engaging customers on click of the item (or rather the div that contains the item). I’m having some difficulty with setting up the data element capture.
The div that contains the item is coded as follows:
<div name="recommendedSku" data-usn="270661" data-brandskunumber="GPT999916" class="pure-u-1 margin_20px_top bottom-border-light-gray padding_20px_bottom" id="Rec-GPT999916" style="display: inline-block;">
<p class="text-center">
<img src="/Images/ProductImage/Thumbnail/6/270661_usn.jpg" class="at-thumbnail"></p>
<p class="product_short_description bold"><a class="line-with-hover" id="search-sku-title" href="https://forums.adobe.com/Sku/GPT999916">SPECTRUM® COPY PAPER, RECYCLED, WHITE, 10 REAMS PER CASE, 5000 SHEETS</a></p>
<br><p>Item #: <a href="https://forums.adobe.com/Sku/GPT999916">GPT999916</a></p>
<p name="priceAndUom" style="display: none;">Price: $<span name="price"></span> / <span name="uom"></span></p>
<p class="text-center margin_10px_top">
<a class="pure-button orange-button-secondary" href="https://forums.adobe.com/Sku/GPT999916">View Details</a>
</p>
</div>
I'd like to set an event-based rule that fires on click of any of the links within the div and then capture the value of the SKU for the item contained in that div.
An example of the product recommendations on which I'm trying to capture clicks can be found on the right hand "Customers Also Viewed" section at the link below (note, the production code differs slightly from the code above):
supplyworks.com/Sku/GPT999917
Any assistance would be greatly appreciated!!
Thanks!
Randy