<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>LuckyOrange Tracking Code &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/luckyorange-tracking-code/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/luckyorange-tracking-code/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 07:02:09 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-203427</guid>
					<title><![CDATA[LuckyOrange Tracking Code]]></title>
					<link>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-203427</link>
					<pubDate>Tue, 10 Feb 2015 20:09:42 +0000</pubDate>
					<dc:creator>Paulo Tebet</dc:creator>

					<description>
						<![CDATA[
						<p>I have just found a tool for monitoring your site, recording user interaction and metrics, chat etc&#8230; I found it very useful for me. The site has to include a JavaScript on all pages so they can be tracked. They generate a code that needs to be embedded on the pages.</p>
<p>I have used the Customiser and Custom JavaScript area. Some how X Theme do something with the code that makes is not effective on the pages.</p>
<p>After chatting with the LuckyOrange developer he took a look on the code and provided me with a modified version that can be used in the Custom Javascript in the X Theme customiser. </p>
<p>So if anybody else is facing this issue, here is the code that works: ( Just replace the 99999 with you real Site ID )</p>
<p>window.__wtw_lucky_site_id = 99999;</p>
<p>	(function() {<br />
		var wa = document.createElement(&#8216;script&#8217;); wa.type = &#8216;text/javascript&#8217;; wa.async = true;<br />
		wa.src = (&#8216;https:&#8217; == document.location.protocol ? &#8216;<a href="https://ssl&#038;#8217" rel="nofollow">https://ssl&#038;#8217</a>; : &#8216;<a href="http://cdn&#038;#8217" rel="nofollow">http://cdn&#038;#8217</a>;) + &#8216;.luckyorange.com/w.js&#8217;;<br />
		var s = document.getElementsByTagName(&#8216;script&#8217;)[0]; s.parentNode.insertBefore(wa, s);<br />
	  })();</p>
<p>Regards,</p>
<p>Paulo Tebet</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-203719</guid>
					<title><![CDATA[Reply To: LuckyOrange Tracking Code]]></title>
					<link>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-203719</link>
					<pubDate>Wed, 11 Feb 2015 04:57:44 +0000</pubDate>
					<dc:creator>Darshana</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Thank you for sharing your solution. </p>
<p>It&#8217;s better to setup a <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" title="Child Themes" target="_blank" rel="nofollow">child theme</a> when you&#8217;re adding similar JavaScript. This allows you to make code changes that won&#8217;t be overwritten when an <strong>X</strong> update is released. After your child theme is setup, please review how we recommend making template changes in <a href="http://theme.co/x/member/kb/customization-best-practices/" rel="nofollow">Customization Best Practices</a>.</p>
<p>Create a JavaScript file for your custom JS code and then follow the code below, add it into your Child Theme&#8217;s <strong>functions.php</strong> file. </p>
<pre><code>function custom_external_js() {
	wp_enqueue_script(&#039;your-own-js&#039;, get_stylesheet_directory_uri() . &#039;/custom_external.js&#039;, array(&#039;jquery&#039;));
}
add_action(&#039;wp_enqueue_scripts&#039;, &#039;add_my_script&#039;);</code></pre>
<p>make sure to replace this <code>/custom_external.js</code> with the correct path/file-name.</p>
<p>Hope that&#8217;s clear.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-206723</guid>
					<title><![CDATA[Reply To: LuckyOrange Tracking Code]]></title>
					<link>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-206723</link>
					<pubDate>Sat, 14 Feb 2015 21:27:20 +0000</pubDate>
					<dc:creator>Paulo Tebet</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the instructions.</p>
<p>I am using a child theme, but was just pasting the regular JavaScript on the Custom Java Script on the Customiser.</p>
<p>I will try your suggested way to be able to use the regular script.</p>
<p>Regards,</p>
<p>Paulo Tebet</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-207208</guid>
					<title><![CDATA[Reply To: LuckyOrange Tracking Code]]></title>
					<link>https://theme.co/archive/forums/topic/luckyorange-tracking-code/#post-207208</link>
					<pubDate>Mon, 16 Feb 2015 00:04:35 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Okay cool, let us know how it goes 😉</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

