Pages with several 'trackPageView' calls

Hi!
I have some pages in my site that set the page title dinamically. When the trackPageView call fires is not always the case that this title is already set. I tried to set a tag that sets the document title for Piwik when the HTML element that contains the right text is loaded through an element presence trigger (this element loads dinamically too so I can’t use a page view trigger).
Following the instructions I found in your help center (How to use custom page titles | Piwik PRO help center) I used this tag:
image
But now I have two trackPageView calls for this pages and my page views get duplicated. Is there any way I can avoid this?

Thank you!

Hi,

Could you share a URL of the site on which you are experiencing this issue? You can leave it here under the thread or share it with me via dm.