How to make Bing event tracking code fire on mouse click?

Bronze Contributor
Bronze Contributor

Hi guys,

 

For the last few days I have been trying to figure out how to set-up Tealium so that a custom Bing tracking code is fired when a user clicks on any one of two buttons on the page.

 

Here is what the tracking code looks like:

 

<script>

      window.uetq = window.uetq || [];

      window.uetq.push

      ({ 'ec':'3rdparty_mobile', 'ea':'application_submit', 'el':'apply_now_click', 'ev':1 });

</script>

 

 

I don't know if there is an easier way to do this but here is what I have done so far (which is not working):

 

1. I created a custom container in Tealium.

2. In load rules, I set the tag to fire when EventLabel contains either one or the other button. Here is what it looks like:

 

load rules

 

 

 

The "JA apply jump footer" event is set-up to work in the following way (the other one is almost the same):

 

data layer

 

 

3. I followed this guide (https://community.tealiumiq.com/t5/Tealium-iQ/Tealium-Custom-Container/m-p/1182/highlight/true#M3746... to add the JavaScript tracking code to the Tag template. Here is where/how I inserted it into the code:

 

template

 

However, while following the guide above, I skipped steps 4-6. Since the tag never changes I don't need to dynamically pass any values to it. As far as I can tell, I shouldn't need to add any data mappins for this to work, however please correct me if I am wrong. At the moment, I did not set-up any data mappings at all. Could this be the issue? Do I need to set-up any data mappings?

 

 

I am very new to Tealium so I assume I have missed some important step or I am doing something wrong. I'd be very grateful for any help.

 

Thanks a lot in advance.

 

 

7 REPLIES 7

How to make Bing event tracking code fire on mouse click?

Tealium Employee

Hi @tibor28

 

I'm afraid your pictures didn't come through. However it sounds like you have given this a good try.

I would suggest raising a support request via:

 

https://community.tealiumiq.com/t5/custom/page/page-id/support-contact-form

 

Or contacting your Account Manager to get a Solutions Engineer to help you with this.

 

That way we can arrange a screen share and walk through getting this working for you.

 

Regards,

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to make Bing event tracking code fire on mouse click?

Bronze Contributor
Bronze Contributor

Hi @adrian_browning,

 

I have fixed the images, they should be showing fine now. Can you please take a look if you see something obviously wrong with my set-up before I contact the support or the account manager?

 

Thanks

How to make Bing event tracking code fire on mouse click?

Tealium Employee

Hi @tibor28

 

So my first thought is, that you need to add the link ability to the tempate.

 

tcc.png

 

Once that is done, you should start seeing the tracking happen.

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to make Bing event tracking code fire on mouse click?

Bronze Contributor
Bronze Contributor

Thanks for the suggestion Adrian. I've made the changes to the tag template that you suggested so hopefully this will solve the issue. I will update this thread in a few hours once I know whether the change worked (Bing conversion tracking takes a while to refresh).

 

 

How to make Bing event tracking code fire on mouse click?

Bronze Contributor
Bronze Contributor

Hi Adrian,

 

Unfortunately it seems like the tracking tag is still not working. Could it have something to do with the lack of data mappings?

How to make Bing event tracking code fire on mouse click?

Tealium Employee

@tibor28

 

There shouldn't be an issue with it no mappings. 

Have you confirmed that the jQuery handler is working, when the element is clicked?

 

Also, is this an off page element? As in when it is clicked does the page navigate?

When does the tag load?

Is there any accompanying code that calls in a file to process this object?

 

I think, at this point we would need to take a look at the full set-up in iQ and a test page. If you can contact support@tealium.com, we will get someone to look into this for you.

 

Adrian

 

 

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to make Bing event tracking code fire on mouse click?

Employee Emeritus

You can also submit a support ticket here@tibor28.

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.
Public