<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Adding Google Analytics tracking code to form</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Adding Google Analytics tracking code to form</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 21:50:46 +0000</pubDate>

<item>
<title>yuniar on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-19843</link>
<pubDate>Thu, 19 Dec 2013 07:24:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">19843@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes, you should add the path to all head instances.
&#60;/p&#62;</description>
</item>
<item>
<title>aavitabile on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-19835</link>
<pubDate>Tue, 17 Dec 2013 21:02:58 +0000</pubDate>
<dc:creator>aavitabile</dc:creator>
<guid isPermaLink="false">19835@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello!  I was hoping to confirm the set up of Google Analytics in 3.5.  I found the includes/view-functions.php file, and in the code, 4 instances of the &#38;lt;head&#38;gt; tag.  Should I add the path to my GA code in each instance?  ie, &#38;lt;script type=&#34;text/javascript&#34; src=&#34;../js/google-analytics.js&#34;&#38;gt;&#38;lt;/script&#38;gt;?&#60;/p&#62;
&#60;p&#62;Thanks!  Amy
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-1837</link>
<pubDate>Sat, 17 May 2008 10:42:04 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1837@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes, this code will track all your forms. Each of them with its own id number.
&#60;/p&#62;</description>
</item>
<item>
<title>Regardt on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-1819</link>
<pubDate>Fri, 16 May 2008 16:52:02 +0000</pubDate>
<dc:creator>Regardt</dc:creator>
<guid isPermaLink="false">1819@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, Thanks for the quick response.&#60;/p&#62;
&#60;p&#62;Question: how will this code know which form to to track. I have 20 forms and only 1 needs this code?
&#60;/p&#62;</description>
</item>
<item>
<title>philwareham on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-1817</link>
<pubDate>Fri, 16 May 2008 15:47:47 +0000</pubDate>
<dc:creator>philwareham</dc:creator>
<guid isPermaLink="false">1817@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
Google seem to want their analytics code placed just before the body close tag (though I guess it make no difference really), so you could place the tracking code between lines 1854 and 1855 of includes/view-functions.php if you wish.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-1809</link>
<pubDate>Fri, 16 May 2008 10:18:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1809@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Open your &#60;strong&#62;includes/view-functions.php&#60;/strong&#62; file.&#60;/p&#62;
&#60;p&#62;Inside display_form() function, around line 1827-1833 you'll find this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;head&#38;gt;
&#38;lt;meta http-equiv=&#38;quot;Content-Type&#38;quot; content=&#38;quot;text/html; charset=UTF-8&#38;quot; /&#38;gt;
&#38;lt;title&#38;gt;{$form-&#38;gt;name}&#38;lt;/title&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; href=&#38;quot;{$css_dir}view.css&#38;quot; media=&#38;quot;all&#38;quot; /&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/view.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
{$calendar_js}
&#38;lt;/head&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Simply insert your tracking code between those head tags.
&#60;/p&#62;</description>
</item>
<item>
<title>Regardt on "Adding Google Analytics tracking code to form"</title>
<link>https://www.machform.com/forums/topic/adding-google-analytics-tracking-code-to-form#post-1803</link>
<pubDate>Thu, 15 May 2008 19:17:26 +0000</pubDate>
<dc:creator>Regardt</dc:creator>
<guid isPermaLink="false">1803@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;How do i, insert tracking text my form? I'm linking to this form from the website.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;I have seen the posts with regards but it's only applicable to iframes usage.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
