Skip to content

Instantly share code, notes, and snippets.

@mattlo
Forked from anonymous/gist:4392858
Last active December 10, 2015 06:08
Show Gist options
  • Save mattlo/4392913 to your computer and use it in GitHub Desktop.
Save mattlo/4392913 to your computer and use it in GitHub Desktop.
Text Option:
<a class="image" target="" onclick="javascript:track_omniture_event('searsStyle+%3E+Shop%2C+share+and+wear+affordable+fashion+at+searsStyle+%3E+Collage1', 'searsStyle+%3E+Shop%2C+share+and+wear+affordable+fashion+at+searsStyle+%3E+Collage1');">
converts to
["searsStyle+%3E+Shop%2C+share+and+wear+affordable+fashion+at+searsStyle+%3E+Collage1", "searsStyle+%3E+Shop%2C+share+and+wear+affordable+fashion+at+searsStyle+%3E+Collage1"]
example usage: <sears:omnitureTrackLinkJsArray omnitureId="omnitureId" index="${slideIndex.count -1}" componentName="Collage" />
Ecom Option:
<a class="image" onclick="javascript:track_omniture_product_view('searsStyle+%3E+Get+It+Now+%3E++-+', 'searsStyle+%3E+Get+It+Now+%3E++-+', '', '');">
<img src="/content/dap/searsstyle/en/home/_jcr_content/centerPar/flexgrid_4/tile55/image4.img.jpg/1345584332931.jpg"/>
</a>
converts to
["searsStyle+%3E+Get+It+Now+%3E++-+", "searsStyle+%3E+Get+It+Now+%3E++-+", "", ""]
example usage: <sears:omnitureTrackProductJsArray omnitureId="omnitureId" index="${slideIndex.count -1}" productName="${slide.productName}" productBrand="${slide.brand}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment