First of all, we have to admit that, unfortunately, there is no universal approach to third-party click tracking and we'd like you to keep that in mind when you republish a piece of code from a third-party using an HTML/JS banner ad format on Adserver.Online platform. And it's not our flaw, but a technical limitation (e.g. browsers anti-clickjacking protection) that prevents recording clicks from third-party content.

The only way to track such clicks is when a third-party code explicitly supports that. If it does, this feature should definitely be mentioned in that third-party code documentation.

Usually, a third-party code has a special parameter that you can use to pass one of our placeholders (e.g. {clickTag}). You can find all available placeholders on an HTML/JS banner form.

For example, using a Google Campaign Manager code, you need to add the following:

data-dcm-click-tracker='{clickTag}'
<ins class='dcmads' style='display:inline-block;width:320px;height:100px'
    data-dcm-placement='xxxxxx'
    data-dcm-rendering-mode='script'
    data-dcm-https-only
    data-dcm-gdpr-applies='gdpr=${GDPR}'
    data-dcm-gdpr-consent='gdpr_consent=${GDPR_CONSENT_755}'
    data-dcm-addtl-consent='addtl_consent=${ADDTL_CONSENT}'
    data-dcm-resettable-device-id=''
    data-dcm-click-tracker='{clickTag}'
    data-dcm-app-id=''>
  <script src='https://www.googletagservices.com/dcm/dcmads.js'></script>
</ins>

At the same time, it is impossible to track clicks on this kind of Google ad code:

<ins class="adsbygoogle"
   style="display:inline-block;min-width:768px;max-width:1200px;width:100%;height:100%"
   data-full-width-responsive="true"
   data-ad-client="ca-pub-xxxxxx"
   data-ad-slot="xxxxxxx"></ins>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

Conclusion

There is no silver bullet to third-party click tracking issue unless this option is supported explicitly via special parameters. In order to find that out, you need to check your third-party documentation or/and ask a third-party support team.