I have a list of shops with detailed information like opening hours and phone numbers. When a user clicks on the shop's name, I want the relevant details to appear using javascript.
I am trying to capture the shop's name (SHOP NAME) when a user clicks on it using Tag Manager, and then display this information in Google Analytics. However, my attempts in GTM have been unsuccessful so far.
Any assistance would be greatly appreciated.
Here is the code snippet:
<table>
<tbody>
<tr class="row" valign="top">
<td class="locationGridColZip" onclick="javascript: locationGridAddressToggle(this);">
<input type="hidden" name="ctl00$ContentRegion$ctl00$locationGridView$ctl02$hfStore" id="ctl00_ContentRegion_ctl00_locationGridView_ctl02_hfStore" value="2620|55,65739|12,35353">CITY
</td>
<td class="locationGridColImgOFF" onclick="javascript: locationGridAddressToggle(this);">
</td>
<td class="locationGridColAddress" onclick="javascript: locationGridAddressToggle(this);">
<h3>SHOP NAME</h3>
</td>
<td class="locationGridColShow">
<a onclick="javascript:map.setCenter(new google.maps.LatLng(55.65739, 12.35353));map.setZoom(12);" href="/butikker.aspx#gmap">SHOW ON MAP</a>
<a class="countryGmap countryGmap1" onclick="javascript:map.setCenter(new google.maps.LatLng(55.65739, 12.35353));map.setZoom(12);" href="/butikker.aspx#gmap"><img src="https://cdn.fotoagent.dk/webshop/production_solr/images/gmapDanmarkAlt.gif" alt="Vis på kort" style="border-width:0px;"></a>
</td>
</tr>
</tbody>
</table>