• When Track outbound clicks & downloads: is checked, the code fragment

    onclick="javascript:_gaq.push(['_trackEvent','outbound-article','https://www.facebook.com']);"

    is added to:

    <script type="text/javascript">
    	/* <![CDATA[ */
    	wppaStoreSlideInfo('1','0','https://helenoppenheim.com/wordpress/wp-content/uploads/wppa/199.jpg',' max-width:446px; max-height:598px; width:446px; height:598px; margin-left:76px; margin-top:0px; border: 1px solid #000;','446','598','1  Salvador Dali','<p>LLUIS LLONGUERAS DID SALVADOR DALI\'S HAIR FOR 30 YEARS</p>\n<p>The revolutionary surrealist painter, Salvador Dali was a dandy at 15.In one of his books on Dali - "Mi Dali Particular" ("My Very Own Dali") - Lluis Llongueras says that the artist came to his salon in Barcelona every 3 months and sometimes he did his hair in hotels.</p>\n<p>One day, Llongueras suggested curlers for fun to give his hair more volume and an airy feeling."I asked him if he would be the first man who dared to be photographed with curlers in his hair.This kind of thought excited and attracted him and he dared, repeating the idea later in New York (The City of Curlers, as he called it, because the photograph taken there became very famous.")</p>\n<p>Photo: Archivo Llongueras<br />All rights reserved ? Helen Oppenheim</p>\n','199','0','0','','','Zoom in','','0','<div id="wppa-comform-wrap-1" style="display:none;" ><form id="wppa-commentform-1" class="wppa-comment-form" action="https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-occur=1&wppa-photo=199" method="post" style="" onsubmit="return wppaValidateComment(1)"><input type="hidden" id="wppa-nonce" name="wppa-nonce" value="485e1df6ce" /><input type="hidden" name="wppa-album" value="33" /><input type="hidden" name="wppa-occur" value="1" /><table id="wppacommenttable-1" style="margin:0;"><tbody><tr valign="top" style=""><td class="wppa-box-text wppa-td" style="width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your name:</td><td class="wppa-box-text wppa-td" style="width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><input type="text" name="wppa-comname" id="wppa-comname-1" style="width:100%; " value="" /></td></tr><tr valign="top" style=""><td class="wppa-box-text wppa-td" style="width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your email:</td><td class="wppa-box-text wppa-td" style="width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><input type="text" name="wppa-comemail" id="wppa-comemail-1" style="width:100%; " value="" /></td></tr><tr valign="top" style="vertical-align:top;"><td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your comment:<br /><br /><input type="submit" name="commentbtn" value="Send!" style="margin:0;" /></td><td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><textarea name="wppa-comment" id="wppa-comment-1" style="height:60px; width:100%; "></textarea></td></tr></tbody></table></form></div><div id="wppa-comfooter-wrap-1" style="display:block;" ><table id="wppacommentfooter-1" class="wppa-comment-form" style="margin:0;"><tbody><tr style="text-align:center; "><td style="text-align:center; cursor:pointer;font-size:12px; color:#fff; font-weight:normal; " ><a onclick="wppaOpenComments(1, -1); return false;">Leave a comment</a></td></tr></tbody></table></div>','','','<p>LLUIS LLONGUERAS DID SALVADOR DALI'S HAIR FOR 30 YEARS</p><p>The revolutionary surrealist painter, Salvador Dali was a dandy at 15.In one of his books on Dali - &quot;Mi Dali Particular&quot; (&quot;My Very Own Dali&quot;) - Lluis Llongueras says that the artist came to his salon in Barcelona every 3 months and sometimes he did his hair in hotels.</p><p>One day, Llongueras suggested curlers for fun to give his hair more volume and an airy feeling.&quot;I asked him if he would be the first man who dared to be photographed with curlers in his hair.This kind of thought excited and attracted him and he dared, repeating the idea later in New York (The City of Curlers, as he called it, because the photograph taken there became very famous.&quot;)  Photo: Archivo Llongueras<br />All rights reserved ? Helen Oppenheim</p>','https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-photo=199&wppa-cover=0&wppa-occur=1','<div style="float:left; padding:2px;" ><img src="https://api.qrserver.com/v1/create-qr-code/?data=http%3A%2F%2Fwww.helenoppenheim.com%2Fservice-page%2F%3Flocale%3Den_US%26wppa-album%3D33%26wppa-photo%3D199%26wppa-cover%3D0%26wppa-occur%3D1&size=80x80&color=000000&bgcolor=FFFFFF" title="https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-photo=199&wppa-cover=0&wppa-occur=1"/></div> 		<div style="float:left; padding:2px;" > 			<a title="Share 1  Salvador Dali on Facebook"  				href="https://www.facebook.com/sharer.php? 				s=100 				&p[url]=http%3A%2F%2Fwww.helenoppenheim.com%2Fservice-page%2F%3Flocale%3Den_US%26wppa-album%3D33%26wppa-photo%3D199%26wppa-cover%3D0%26wppa-occur%3D1 				&p[images][0]=https://helenoppenheim.com/wordpress/wp-content/uploads/wppa/thumbs/199.jpg 				&p[title]=1++Salvador+Dali 				&p[summary]=%3Cp%3ELLUIS+LLONGUERAS+DID+SALVADOR+DALI%27S+HAIR+FOR+30+YEARS%3C%2Fp%3E%3Cp%3EThe+revolutionary+surrealist+painter%2C+Salvador+Dali+was+a+dandy+at+15.In+one+of+his+books+on+Dali+-+%22Mi+Dali+Particular%22+%28%22My+Very+Own+Dali%22%29+-+Lluis+Llongueras+says+that+the+artist+came+to+his+salon+in+Barcelona+every+3+months+and+sometimes+he+did+his+hair+in+hotels.%3C%2Fp%3E%3Cp%3EOne+day%2C+Llongueras+suggested+curlers+for+fun+to+give+his+hair+more+volume+and+an+airy+feeling.%22I+asked+him+if+he+would+be+the+first+man+who+dared+to+be+photographed+with+curlers+in+his+hair.This+kind+of+thought+excited+and+attracted+him+and+he+dared%2C+repeating+the+idea+later+in+New+York+%28The+City+of+Curlers%2C+as+he+called+it%2C+because+the+photograph+taken+there+became+very+famous.%22%29%0A%0APhoto%3A+Archivo+Llongueras%3Cbr+%2F%3EAll+rights+reserved+%C2%A9+Helen+Oppenheim%3C%2Fp%3E" target="_blank" > 					<img src="https://helenoppenheim.com/wordpress/wp-content/plugins/wp-photo-album-plus/images/facebook.png"  						 alt="Share on Facebook" /> 			</a> 		</div><div style="clear:both"></div>');
    /* ]]> */
    </script>

    giving:

    <script type="text/javascript">
    	/* <![CDATA[ */
    	wppaStoreSlideInfo('1','0','https://helenoppenheim.com/wordpress/wp-content/uploads/wppa/199.jpg',' max-width:446px; max-height:598px; width:446px; height:598px; margin-left:76px; margin-top:0px; border: 1px solid #000;','446','598','1  Salvador Dali','<p>LLUIS LLONGUERAS DID SALVADOR DALI\'S HAIR FOR 30 YEARS</p>\n<p>The revolutionary surrealist painter, Salvador Dali was a dandy at 15.In one of his books on Dali - "Mi Dali Particular" ("My Very Own Dali") - Lluis Llongueras says that the artist came to his salon in Barcelona every 3 months and sometimes he did his hair in hotels.</p>\n<p>One day, Llongueras suggested curlers for fun to give his hair more volume and an airy feeling."I asked him if he would be the first man who dared to be photographed with curlers in his hair.This kind of thought excited and attracted him and he dared, repeating the idea later in New York (The City of Curlers, as he called it, because the photograph taken there became very famous.")</p>\n<p>Photo: Archivo Llongueras<br />All rights reserved ? Helen Oppenheim</p>\n','199','0','0','','','Zoom in','','0','<div id="wppa-comform-wrap-1" style="display:none;" ><form id="wppa-commentform-1" class="wppa-comment-form" action="https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-occur=1&wppa-photo=199" method="post" style="" onsubmit="return wppaValidateComment(1)"><input type="hidden" id="wppa-nonce" name="wppa-nonce" value="485e1df6ce" /><input type="hidden" name="wppa-album" value="33" /><input type="hidden" name="wppa-occur" value="1" /><table id="wppacommenttable-1" style="margin:0;"><tbody><tr valign="top" style=""><td class="wppa-box-text wppa-td" style="width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your name:</td><td class="wppa-box-text wppa-td" style="width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><input type="text" name="wppa-comname" id="wppa-comname-1" style="width:100%; " value="" /></td></tr><tr valign="top" style=""><td class="wppa-box-text wppa-td" style="width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your email:</td><td class="wppa-box-text wppa-td" style="width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><input type="text" name="wppa-comemail" id="wppa-comemail-1" style="width:100%; " value="" /></td></tr><tr valign="top" style="vertical-align:top;"><td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:30%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" >Your comment:<br /><br /><input type="submit" name="commentbtn" value="Send!" style="margin:0;" /></td><td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:70%; font-size:12px; color:#fff; font-weight:normal; padding: 3px 2px 3px 0; border: 0" ><textarea name="wppa-comment" id="wppa-comment-1" style="height:60px; width:100%; "></textarea></td></tr></tbody></table></form></div><div id="wppa-comfooter-wrap-1" style="display:block;" ><table id="wppacommentfooter-1" class="wppa-comment-form" style="margin:0;"><tbody><tr style="text-align:center; "><td style="text-align:center; cursor:pointer;font-size:12px; color:#fff; font-weight:normal; " ><a onclick="wppaOpenComments(1, -1); return false;">Leave a comment</a></td></tr></tbody></table></div>','','','<p>LLUIS LLONGUERAS DID SALVADOR DALI'S HAIR FOR 30 YEARS</p><p>The revolutionary surrealist painter, Salvador Dali was a dandy at 15.In one of his books on Dali - &quot;Mi Dali Particular&quot; (&quot;My Very Own Dali&quot;) - Lluis Llongueras says that the artist came to his salon in Barcelona every 3 months and sometimes he did his hair in hotels.</p><p>One day, Llongueras suggested curlers for fun to give his hair more volume and an airy feeling.&quot;I asked him if he would be the first man who dared to be photographed with curlers in his hair.This kind of thought excited and attracted him and he dared, repeating the idea later in New York (The City of Curlers, as he called it, because the photograph taken there became very famous.&quot;)  Photo: Archivo Llongueras<br />All rights reserved ? Helen Oppenheim</p>','https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-photo=199&wppa-cover=0&wppa-occur=1','<div style="float:left; padding:2px;" ><img src="https://api.qrserver.com/v1/create-qr-code/?data=http%3A%2F%2Fwww.helenoppenheim.com%2Fservice-page%2F%3Flocale%3Den_US%26wppa-album%3D33%26wppa-photo%3D199%26wppa-cover%3D0%26wppa-occur%3D1&size=80x80&color=000000&bgcolor=FFFFFF" title="https://www.helenoppenheim.com/service-page/?locale=en_US&wppa-album=33&wppa-photo=199&wppa-cover=0&wppa-occur=1"/></div> 		<div style="float:left; padding:2px;" > 			<a title="Share 1  Salvador Dali on Facebook"  				href="https://www.facebook.com/sharer.php? 				s=100 				&p[url]=http%3A%2F%2Fwww.helenoppenheim.com%2Fservice-page%2F%3Flocale%3Den_US%26wppa-album%3D33%26wppa-photo%3D199%26wppa-cover%3D0%26wppa-occur%3D1 				&p[images][0]=https://helenoppenheim.com/wordpress/wp-content/uploads/wppa/thumbs/199.jpg 				&p[title]=1++Salvador+Dali 				&p[summary]=%3Cp%3ELLUIS+LLONGUERAS+DID+SALVADOR+DALI%27S+HAIR+FOR+30+YEARS%3C%2Fp%3E%3Cp%3EThe+revolutionary+surrealist+painter%2C+Salvador+Dali+was+a+dandy+at+15.In+one+of+his+books+on+Dali+-+%22Mi+Dali+Particular%22+%28%22My+Very+Own+Dali%22%29+-+Lluis+Llongueras+says+that+the+artist+came+to+his+salon+in+Barcelona+every+3+months+and+sometimes+he+did+his+hair+in+hotels.%3C%2Fp%3E%3Cp%3EOne+day%2C+Llongueras+suggested+curlers+for+fun+to+give+his+hair+more+volume+and+an+airy+feeling.%22I+asked+him+if+he+would+be+the+first+man+who+dared+to+be+photographed+with+curlers+in+his+hair.This+kind+of+thought+excited+and+attracted+him+and+he+dared%2C+repeating+the+idea+later+in+New+York+%28The+City+of+Curlers%2C+as+he+called+it%2C+because+the+photograph+taken+there+became+very+famous.%22%29%0A%0APhoto%3A+Archivo+Llongueras%3Cbr+%2F%3EAll+rights+reserved+%C2%A9+Helen+Oppenheim%3C%2Fp%3E" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','https://www.facebook.com']);"  				target="_blank" > 					<img src="https://helenoppenheim.com/wordpress/wp-content/plugins/wp-photo-album-plus/images/facebook.png"  						 alt="Share on Facebook" /> 			</a> 		</div><div style="clear:both"></div>');
    /* ]]> */
    </script>

    This cause a js error because of the single quotes in the added code.

    PLEASE do NOT destructify code inside [CDATA[]] blocks!!!

    https://www.ads-software.com/extend/plugins/google-analytics-for-wordpress/

  • The topic ‘Destructed code inside a CDATA block’ is closed to new replies.