For the complete documentation index, see llms.txt. This page is also available as Markdown.

Emarketeer specific functions

DCL functions unique to eMarketeer that fetch data from the contact card, your user account, and other product-specific sources.

To track a link in eMarketeer, use the link function. A normal <a href="url">Link</a> still renders, but it is not tracked. The link command looks like this:

<% link url="url-to-link" caption="Label to link" [attrib="htmlattributes"] [html="true"] %>
  • url: the URL to link to. It must be URL-encoded; eMarketeer does not encode it for you.

  • caption: the label of the link, as plain text or HTML. If it is HTML, pass html="true".

  • attrib: attributes added to the resulting <a> tag in the rendered HTML.

Contact

The contact function fetches or prints values from the contact card the form is attached to.

<% contact field="fieldname" %>

fieldname is one of these:

Fieldname
Explaination

firstname

Firstname of contact

lastname

Lastname of contact

salutation

How to salute this contact. For example "Mr", "Mrs"

company

This contacts work company

email

Email address of contact

title

Work title

telephone

Contacts telephone number

fax

Contacts fax number

mobile

Contact mobile telephone number

address1

First line in contacts address

address2

Second line in contacts address

city

City of contact

state

State of contact

zip

Zip or postal code of contact

country

Country of contact

external_id

Id in users CMS

note

Your note of this contact

Custom contact fields use this syntax:

If you are unsure of the right field code, open an email and use the built-in personalization button in any text. It surfaces the proper code for each field.

User

The user function fetches or prints information about your user account.

Fieldname
Explaination

logo

The url to your companys logo in emarketeer takes a second argument "version" which can be "light" or "dark". The light background logo is the default

company

Company name

address1

First address line of company

address2

Second address line of company

city

City of company

zip

Zip or postal code of company

state

State of company

country

Country of company

webpage

Homepage of company, optional argument "protocol" may be set to true to include protocol in adress (Normaly https://)

url

Url this user uses to access emarkeeter.

telephone

Tehephone number of company

Scramble

The scramble code is a unique identifier generated when sending an email. eMarketeer uses it internally to identify which contact is clicking a link in the email.

Block

The block function fetches specific data from a block in eMarketeer. Different block types expose different fields. The function returns the literal string typed into the block, not evaluated code.

The name argument is a relative path to the block you want, starting at the current node in the tree. Nodes are separated by .. The keyword parent is reserved and moves up one level. For example:

This path goes from the current node up to the parent container block, then into block1, then into the text2 text block.

If the name argument starts with ., the lookup begins at the root. For example:

This path always resolves from the root, regardless of where you start.

Text Block

Fieldname
Explaination

text

The text entered into the text block

Image Block

Fieldname
Explaination

url

the url of the image

Link Block

Fieldname
Explaination

url

the url of the link

caption

the link caption

Container Block

Fieldname
Explaination

text

Returns the HTML source code of the block

Option Block

Fieldname
Explaination

value

Current value of the option block

Last updated

Was this helpful?