Add html to one page without creating div possible?

Permalink
Hi,

I have a problem with google conversion tracking pixels ... they do not fire.

I asked a dev and he said the reason might be that the pixel is inside a <div>

Now there's the problem ... I have to add the pixel to only a couple of pages ... the pages where people arrive after they have made a booking. Obviously I cannot add the pixel to dashboard or to page template.php or anything like that. I usually add pixels to html block
But this of course will create a <div></div> around my pixel.

Any way to circumvent? Anyone ever faced same problem? Conversion tracking not working in google adwords? Any suggestions, help?

Thxs very much appreciated

rritz
 
Steevb replied on at Permalink Reply
Steevb
HTML block does not add a 'div' in 5.8.2.1.

If I add '<p>pixel</p>', I see the same in the source code.

Which version r u using?
rritz replied on at Permalink Reply
rritz
oh, this website is in 5.6 still
Gondwana replied on at Permalink Reply
Gondwana
Are you sure that the problem isn't javascript-related?
mnakalay replied on at Permalink Reply
mnakalay
just create a template for your HTML block and in your template simply have this
<?php
defined('C5_EXECUTE') or die("Access Denied.");
echo $content;
?>

Then apply the template to your block.