Topic: Adding tags for advertising agency

I also need to know which file I need to edit to add tracking tags onto my site?

This is what they want me to add in on my home page for example - does it go in index.html and if so where?:

<!-- begin ad tag  (tile=1) -->
<script language="JavaScript" src=";tile=1;dcopt=ist;sz=468x60;ord=[timestamp]?" type="text/javascript"></script>
<noscript><a href=";tile=1;sz=468x60;ord=[timestamp]?" target="_blank"><img src=";tile=1;sz=468x60;ord=[timestamp]?" width="468" height="60" border="0" alt=""></a></noscript>
<!-- End ad tag -->

Last edited by jkme (2006-11-13 03:54:31)

Re: Adding tags for advertising agency

I assume 'home page' means whole your site (not just first page).
So put this code in your layout (app/views/layouts/<something>.rhtml). If you use many layouts, then create a partial with this ad-code and include this partial in each layout.

I can see that this code will display a banner image, so put it inside the layout where you want to see this banner.

If you gave structure of your layout page we could help more.

Re: Adding tags for advertising agency

Thanks for this - is this code enough?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en" lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta name="copyright" content="<%= @page['copyright'] %>" />
    <meta name="keywords" content="<%= @page['keywords'] %>" />
    <meta name="description" content="<%= @page['description'] %>" />
    <title><%= @page['title'] %></title>
    <!--<script src="/mint/?js" type="text/javascript"></script>-->
    <%= stylesheet("screen") %>
    <%= stylesheet(@params['controller']) %>

<body id="<%= @page['id'] %>">
<div id="wrap">
    <div id="header">
        <div id="logo"><%= image("logo_white.gif", "alt"=>"", "width"=>110, "height"=>78) %></div>
        <%= render_banner %>
        <div class="clear">&nbsp;</div>
    <div id="nav">

Last edited by jkme (2006-11-13 07:24:54)