I develop sites using a content management system, functions are added through third-party modules, which is much easier for designers like me. However, I am a little puzzled at the moment.
I have an AJAX based contact form, so there is no page loading when submitting the page. However, I do have access to HTML templates for each step (input page, submitted form, and sent email).
I did some research in the GA.js library, and it seems to me that I want to use the _trackPageView function. I have combined some thread-based code in the GA help group, but now I track the account for 2 days (when sending test forms ~ 5 + once a day), but I don’t see the goal being completed, seeing that the "dummy page "appears in my list of" Top Content "(fully expanded). The code I use is as follows:
/script tag/ try { var pageTracker = _gat._getTracker("UA-#####-##"); pageTracker._trackPageview(/formcomplete.html); } catch(err) {} /close script/
The target URI is configured as Head Match and uses the /formcomplete.html value, it is active, and the site is tracking. Any thoughts?
source share