# Editing source code for landing page

**URL:** <https://forum.mautic.org/t/editing-source-code-for-landing-page/2223>\
**Category:** Product Support\
**Created:** [August 21, 2015, 8:44am UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223 "2015-08-21T08:44:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armant](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Armant](https://forum.mautic.org/u/Armant)\
**Post date:** [August 21, 2015, 8:44am UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/1 "2015-08-21T08:44:46Z")

</div>

Why does the system edit the code after I’ve pasted it in.  
  
ie. i can’t clone it because if i do, and i edit the code the system does some of it’s code as well.  
  
adding / all over  
  
moving blocks of code around.

---

<div class="post-metadata">

**Author:** ![Armant](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Armant](https://forum.mautic.org/u/Armant)\
**Post date:** [August 21, 2015, 8:44am UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/2 "2015-08-21T08:44:46Z")

</div>

Why does the system edit the code after I’ve pasted it in.  
ie. i can’t clone it because if i do, and i edit the code the system does some of it’s code as well.  
adding / all over  
moving blocks of code around.

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [August 21, 2015, 2:35pm UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/3 "2015-08-21T14:35:38Z")

</div>

Are you talking about page or email templates?

Both editors add their own code for various reasons. Emails add their own code converting links to be trackable, so the link needs to be changed. The pages add some code to ensure all the proper HTML tags are added.

---

<div class="post-metadata">

**Author:** ![Armant](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Armant](https://forum.mautic.org/u/Armant)\
**Post date:** [August 27, 2015, 8:05pm UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/4 "2015-08-27T20:05:20Z")

</div>

Hi Chad.

I’ve added googles remarketing tag at the bottom of the of the body tag, as google requires it to be in the body.  
so adding it through the config. with analytics won’t work ( tried it.)

So when i add this tag…

[b]

 ![](https://googleads.g.doubleclick.net/pagead/viewthroughconversion/??????????/?value=0&guid=ON&script=0)
[/b]

It then only saves this:

[b]

 ![](https://googleads.g.doubleclick.net/pagead/viewthroughconversion/??????????/?value=0&guid=ON&script=0)
[/b]

How can we get past this?  
@escopecz If you have a suggestion it will be greatly appreciated.

Thanks Guys for your all your help so far.

---

<div class="post-metadata">

**Author:** ![zuno](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@zuno](https://forum.mautic.org/u/zuno)\
**Post date:** [October 7, 2015, 7:33pm UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/5 "2015-10-07T19:33:59Z")

</div>

I’m trying to do the exact same thing. Did you ever figure out a solution to get AdWords conversion code added to your landing pages?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [October 8, 2015, 6:52am UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/6 "2015-10-08T06:52:57Z")

</div>

There should be probably an easier solution, but have you tried copying a theme (rename the folder name and the name in the theme config file) and inserting the code to a theme file? Then use your theme instead of Mautic’s default themes.

---

<div class="post-metadata">

**Author:** ![DerekBuntin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derekbuntin/32/90_2.png) [@DerekBuntin](https://forum.mautic.org/u/DerekBuntin)\
**Post date:** [July 12, 2016, 7:33pm UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/7 "2016-07-12T19:33:28Z")

</div>

The problem I can in code view when editing a template is it removed the entire source code, so it’s blank, I’m sure it was working earlier.

I’m considering not using Mautic for landing pages and just importing the forms into my Joomla site instead, not the best solution as I’d like to keep it altogether but if needs must.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/editing-source-code-for-landing-page/2223/8 "2020-02-02T22:57:57Z")

</div>


