I have below code in the DWT and the internal link `(tridion:href="@@Links0.Fields.link@@")` does not get resolved. <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@']);" tridion:href="@@Links0.Fields.link@@" target="_blank" class="button primary" > When i place this internal link attribute(tridion:href="@@Links0.Fields.link@@") before the onclick , link get resolved successfully. But page get failed at the time of deployment and throw below error - > Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: > TAG: (0) Param=false Mode=0 > Class=com.tridion.tcdl.tags.DefaultTagHandler > TAG:ComponentPresentation (0) Param=false Mode=0 > Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link > (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler > ------ , Unbalanced tags in TCDL file Closing Tag tcdl:ComponentPresentation does not match tcdl:Link Stack: TAG: (0) > Param=false Mode=0 Class=com.tridion.tcdl.tags.DefaultTagHandler > TAG:ComponentPresentation (0) Param=false Mode=0 > Class=com.tridion.tcdl.tags.ComponentPresentationTagHandler TAG:Link > (0) Param=false Mode=0 Class=com.tridion.tcdl.tags.LinkTagHandler So as i found that there is some issue with @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ passed as the parameter in the google analytics. There were some project limitation so we are rendering the ComponentPresentation inside the google analytics in above mentioned way. When i place the text return by this component Presentation for example "This is sample product" it works correctly. means in blow case internal link get resolved successfully. <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', 'This is sample product']);" tridion:href="@@Links0.Fields.link@@" target="_blank" class="button primary" > i tried to set the output of this component presentation in the RenderContextVariable @@SetRenderContextVariable("linkTitle_withoutSC",RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle))@@ and tried then below way - <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@', '@@Links0.Metadata.ga_action@@', '@@RenderContextVariable.linkTitle_withoutSC@@']);" tridion:href="@@Links0.Fields.link@@" target="_blank" class="button primary" > But this workaround is not working since we can not set and use RenderContextVariable in the same DWT, Please validate me here if i am wrong. Now i am unable to find anyother way to deal with the internal link in this case. Could somebody help me on this. **EDIT-2 SOME MORE INFORMATION ABOUT THE REQUIREMENT** **Point 1-** *Reason to use @@RenderComponentPresentation(Links0.ID,RemoveSpecialCharactersFromTitle)@@ inside the Google Analytics* Component for this presentation is nested linked component so i can perform my task though a C# TBB or fragment having logic same to "RemoveSpecialCharactersFromTitle" so I use RenderComponentPresentation here. **Point 2-** I am trying to set and use RenderContextVariable in the same DWT of a CT sothat it return me the string ouput[Title] .By this way i can avoid the conflict of "tcdl:ComponentPresentation" and "tcdl:Link" tags during the deployment phase.