0
0
Digital Marketingknowledge~10 mins

Conversion tracking setup in Digital Marketing - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a conversion tracking pixel to a webpage.

Digital Marketing
<script>
  function trackConversion() {
    var img = new Image();
    img.src = "https://example.com/track?event=[1]";
    document.body.appendChild(img);
  }
</script>
Drag options to blanks, or click blank then click option'
Apurchase
Bclick
Cscroll
Dview
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'click' or 'view' which are not final conversion events.
Forgetting to include the event parameter in the URL.
2fill in blank
medium

Complete the code to send a conversion event using Google Tag Manager's dataLayer.

Digital Marketing
<script>
  dataLayer.push({
    'event': '[1]',
    'transactionId': '12345'
  });
</script>
Drag options to blanks, or click blank then click option'
Aconversion
Bpageview
Cclick
Dimpression
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pageview' which tracks page loads, not conversions.
Using 'click' which tracks clicks but not conversions.
3fill in blank
hard

Fix the error in the conversion tracking code by completing the missing parameter.

Digital Marketing
<script>
  gtag('event', 'conversion', {
    'send_to': '[1]'
  });
</script>
Drag options to blanks, or click blank then click option'
AFB-123456789
BUA-123456789-1
CG-1234567890
DAW-123456789/abcde12345
Attempts:
3 left
💡 Hint
Common Mistakes
Using Google Analytics IDs instead of Google Ads conversion IDs.
Omitting the conversion label after the slash.
4fill in blank
hard

Fill both blanks to create a conversion tracking URL with parameters for source and medium.

Digital Marketing
https://example.com/thankyou?utm_source=[1]&utm_medium=[2]
Drag options to blanks, or click blank then click option'
Anewsletter
Bemail
Csocial
Dcpc
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up source and medium values.
Using generic terms that don't specify the traffic origin.
5fill in blank
hard

Fill all three blanks to complete the JavaScript object for conversion tracking with event name, value, and currency.

Digital Marketing
var conversionData = {
  event: '[1]',
  value: [2],
  currency: '[3]'
};
Drag options to blanks, or click blank then click option'
Apurchase
B100
CUSD
Dclick
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'click' instead of 'purchase' for the event.
Putting the value in quotes making it a string instead of a number.
Using incorrect currency codes.